public class AbstractAggregateFunDef extends FunDefBase
Aggregate,
Sum, Avg, et cetera).FunUtil.DescendingValueComparatorUtil.AbstractFlatList<T>, Util.ByteMatcher, Util.ErrorCellValue, Util.Flat2List<T>, Util.Flat3List<T>, Util.Functor1<RT,PT>, Util.GcIterator<T>, Util.MemoryInfo, Util.PropertyList, Util.SqlNullSafeComparatorflags, parameterCategories, returnCategoryBooleanNull, DoubleEmpty, DoubleNull, IntegerNull, NullMemberDEBUG, EmptyValue, IBM_JVM, JdbcVersion, JVM_INSTANCE_UUID, nl, nullValue, Retrowoven| Constructor and Description |
|---|
AbstractAggregateFunDef(FunDef dummyFunDef) |
| Modifier and Type | Method and Description |
|---|---|
protected TupleIterable |
evaluateCurrentIterable(IterCalc iterCalc,
Evaluator evaluator) |
protected static TupleList |
evaluateCurrentList(ListCalc listCalc,
Evaluator evaluator)
Evaluates the list of members or tuples used in computing the aggregate.
|
static TupleList |
processUnrelatedDimensions(TupleList tuplesForAggregation,
Evaluator evaluator)
Pushes unrelated dimensions to the top level member from the given list
of tuples if the ignoreUnrelatedDimensions property is set on the base
cube usage in the virtual cube.
|
protected Exp |
validateArg(Validator validator,
Exp[] args,
int i,
int category)
Validates an argument to a call to this function.
|
compileCall, createCall, getDescription, getName, getParameterCategories, getResultType, getReturnCategory, getSignature, getSyntax, unparseavg, box, box, checkIterListResultStyles, checkListResultStyles, compareHierarchically, compareSiblingMembers, compareValues, compareValues, count, decodeCategory, decodeParameterCategories, decodeReturnCategory, decodeSyntacticType, getDimensionDefaultHierarchy, getNonEmptyMemberChildren, getNonEmptyMemberChildrenWithDetails, isAncestorOf, makeNullTuple, max, min, newEvalException, newEvalException, newEvalException, quartile, resolveFunArgs, sum, sumDouble, sumDouble, tupleContainsNullMember, tupleContainsNullMember, worthCachingaddDatabaseTime, addLevelCalculatedMembers, append, appendArrays, areOccurencesEqual, assertPostcondition, assertPostcondition, assertPrecondition, assertPrecondition, assertTrue, assertTrue, badValue, binarySearch, bitSetBetween, camelToUpper, canCast, cancelStatement, caseSensitiveCompareName, cast, cast, castToIterable, checkCJResultLimit, close, commaList, compare, compareIntegers, compareKey, compareName, compileScript, convert, convert, convertOlap4jConnectStringToNativeMondrian, convertStackToString, copyOf, copyOf, copyOf, copyOf, copyOf, createExpr, createRandom, createRootRole, createSimpleValidator, createUdf, dbTimeMillis, deprecated, deprecated, digestMd5, digestSha256, equal, equalName, equals, equals, explain, falseFunctor, filter, flatList, flatList, flatListCopy, generateUuidString, genericArray, getAnnotation, getClosestResource, getDimensionCube, getErrorMessage, getErrorMessage, getExecutorService, getFirstDescendantOnLevel, getMatchingCause, getMemberOrdinalInParent, getMemoryInfo, getScheduledExecutorService, hash, hash, hashArray, identityFunctor, implode, intersect, isBlank, isEmpty, isNull, isSorted, isValidProperty, last, lookup, lookup, lookup, lookup, lookup, lookupCompound, lookupCompound, lookupHierarchyLevel, lookupHierarchyRootMember, lookupHierarchyRootMember, lookupProperty, makeBigDecimalFromDouble, makeFqName, makeFqName, makeFqName, matches, matches, mdxEncodeString, needToImplement, newElementNotFoundException, newError, newError, newIdentityHashSet, newIdentityHashSetFake, newInternal, newInternal, newTimer, nonDbTimeMillis, normalizeName, only, parseCommaList, parseConnectString, parseIdentifier, parseInterval, parseLocale, printMemory, printMemory, quoteForMdx, quoteForMdx, quoteJavaString, quoteMdxIdentifier, quoteMdxIdentifier, quoteMdxIdentifier, quoteMdxIdentifier, quotePattern, readFully, readFully, readURL, readURL, readURL, readVirtualFile, readVirtualFileAsString, replace, replace, replaceProperties, safeGet, singleQuoteString, singleQuoteString, sort, sort, threadLocalRemove, toMap, toNullValuesMap, toOlap4j, toOlap4j, toOlap4j, toURL, trueFunctor, unexpected, uniquify, unparse, unparse, wildcardToRegexpaddChild, addChild, addChildren, addElement, concatenate, createDefaultParser, discard, discard, discard, discard, discard, discard, discard, discard, discard, getFirstInstance, wrapperToXmlpublic AbstractAggregateFunDef(FunDef dummyFunDef)
protected Exp validateArg(Validator validator, Exp[] args, int i, int category)
FunDefBaseThe default implementation of this method adds an implicit conversion to the correct type. Derived classes may override.
validateArg in class FunDefBasevalidator - Validatorargs - Arguments to this functioni - Ordinal of argumentcategory - Expected category of argumentprotected static TupleList evaluateCurrentList(ListCalc listCalc, Evaluator evaluator)
listCalc - calculator used to evaluate the member listevaluator - current evaluation contextprotected TupleIterable evaluateCurrentIterable(IterCalc iterCalc, Evaluator evaluator)
public static TupleList processUnrelatedDimensions(TupleList tuplesForAggregation, Evaluator evaluator)
If IgnoreMeasureForNonJoiningDimension is set to true and ignoreUnrelatedDimensions on CubeUsage is set to false then if a non joining dimension exists in the aggregation list then return an empty list else return the original list.
tuplesForAggregation - is a list of members or tuples used in
computing the aggregateevaluator - EvaluatorCopyright © 2021 Hitachi Vantara. All rights reserved.