Package mondrian.olap.fun
Class CacheFunDef.CacheFunResolver
java.lang.Object
org.eigenbase.xom.XMLUtil
org.eigenbase.xom.XOMUtil
mondrian.olap.Util
mondrian.olap.fun.FunUtil
mondrian.olap.fun.CacheFunDef.CacheFunResolver
- All Implemented Interfaces:
Resolver
- Enclosing class:
- CacheFunDef
-
Nested Class Summary
Nested classes/interfaces inherited from class mondrian.olap.fun.FunUtil
FunUtil.DescendingValueComparatorNested classes/interfaces inherited from class mondrian.olap.Util
Util.AbstractFlatList<T>, Util.ByteMatcher, Util.ErrorCellValue, Util.Flat2List<T>, Util.Flat3List<T>, Util.Functor1<RT,PT>, Util.GcIterator<T>, Util.MemoryInfo, Util.PropertyList, Util.SqlNullSafeComparator Nested classes/interfaces inherited from interface mondrian.olap.fun.Resolver
Resolver.Conversion -
Field Summary
Fields inherited from class mondrian.olap.fun.FunUtil
BooleanNull, DoubleEmpty, DoubleNull, IntegerNull, NullMemberFields inherited from class mondrian.olap.Util
DEBUG, EmptyValue, IBM_JVM, JdbcVersion, JVM_INSTANCE_UUID, nl, nullValue, Retrowoven -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the function or operator.Returns a representative example of the function which this Resolver can produce, for purposes of describing the function set.getName()Returns the name of the function or operator.String[]Returns an array of symbolic constants which can appear as arguments to this function.Returns a string describing the syntax of this function, for exampleReturns the syntax with which the function or operator was invoked.booleanrequiresExpression(int k) Returns whether a particular argument must be a scalar expression.resolve(Exp[] args, Validator validator, List<Resolver.Conversion> conversions) Given a particular set of arguments the function is applied to, returns the correct overloaded form of the function.Methods inherited from class mondrian.olap.fun.FunUtil
avg, 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, worthCachingMethods inherited from class mondrian.olap.Util
addAppender, addDatabaseTime, 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, makeAppender, 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, removeAppender, replace, replace, replaceProperties, safeGet, setLevel, singleQuoteString, singleQuoteString, sort, sort, threadLocalRemove, toMap, toNullValuesMap, toOlap4j, toOlap4j, toOlap4j, toURL, trueFunctor, unexpected, uniquify, unparse, unparse, wildcardToRegexpMethods inherited from class org.eigenbase.xom.XOMUtil
addChild, addChild, addChildren, addElement, concatenate, createDefaultParser, discard, discard, discard, discard, discard, discard, discard, discard, discard, getFirstInstance, wrapperToXmlMethods inherited from class org.eigenbase.xom.XMLUtil
getFirstTagName, printAtt, printAtt, printAtt, printAtt, printPCDATA, printPCDATA, printPCDATA, quoteAtt, quoteAtt, quoteAtt, quoteAtt, quotePCDATA, stringEncodeXML, stringHasXMLSpecials
-
Method Details
-
resolve
Description copied from interface:ResolverGiven a particular set of arguments the function is applied to, returns the correct overloaded form of the function.The method adds an item to
conversionsevery time it performs an implicit type-conversion. If there are several candidate functions with the same signature, the validator will choose the one which used the fewest implicit conversions.- Parameters:
args- Expressions which this function call is applied to.validator- Validatorconversions- List of implicit conversions performed (out)- Returns:
- The function definition which matches these arguments, or null if no function definition that this resolver knows about matches.
-
requiresExpression
public boolean requiresExpression(int k) Description copied from interface:ResolverReturns whether a particular argument must be a scalar expression. Returnsfalseif any of the variants of this resolver allows a set as itskth argument; true otherwise.- Specified by:
requiresExpressionin interfaceResolver
-
getName
Description copied from interface:ResolverReturns the name of the function or operator. -
getSignature
Description copied from interface:ResolverReturns a string describing the syntax of this function, for exampleStrToSet() - Specified by:
getSignaturein interfaceResolver
-
getFunDef
Description copied from interface:ResolverReturns a representative example of the function which this Resolver can produce, for purposes of describing the function set. May return null if there is no representative function, or if the Resolver has a way to describe itself in more detail. -
getDescription
Description copied from interface:ResolverReturns the description of the function or operator.- Specified by:
getDescriptionin interfaceResolver
-
getSyntax
Description copied from interface:ResolverReturns the syntax with which the function or operator was invoked. -
getReservedWords
Description copied from interface:ResolverReturns an array of symbolic constants which can appear as arguments to this function.For example, the
DrilldownMembermay take the symbolRECURSIVEas an argument. Most functions do not define any symbolic constants.- Specified by:
getReservedWordsin interfaceResolver- Returns:
- An array of the names of the symbolic constants
-