Class LuceneFunctionKeyExpression.LuceneFieldName
java.lang.Object
com.apple.foundationdb.record.metadata.expressions.BaseKeyExpression
com.apple.foundationdb.record.metadata.expressions.FunctionKeyExpression
com.apple.foundationdb.record.lucene.LuceneFunctionKeyExpression
com.apple.foundationdb.record.lucene.LuceneFunctionKeyExpression.LuceneFieldName
- All Implemented Interfaces:
AtomKeyExpression,KeyExpression,KeyExpressionWithChild,KeyExpressionWithChildren,PlanHashable
- Enclosing class:
- LuceneFunctionKeyExpression
The
lucene_field_name key function.
Takes two arguments, a child key expression and a name and overrides the field naming of that child (and its descendants) to be the specified name.
Common cases of the name expression would be a literal string or null or another field whose value determines the name at index time.-
Nested Class Summary
Nested classes/interfaces inherited from class com.apple.foundationdb.record.lucene.LuceneFunctionKeyExpression
LuceneFunctionKeyExpression.LuceneFieldConfig, LuceneFunctionKeyExpression.LuceneFieldName, LuceneFunctionKeyExpression.LuceneSortBy, LuceneFunctionKeyExpression.LuceneSorted, LuceneFunctionKeyExpression.LuceneStored, LuceneFunctionKeyExpression.LuceneTextNested classes/interfaces inherited from class com.apple.foundationdb.record.metadata.expressions.FunctionKeyExpression
FunctionKeyExpression.BiFunctionBuilder, FunctionKeyExpression.Builder, FunctionKeyExpression.Factory, FunctionKeyExpression.RegistryNested classes/interfaces inherited from class com.apple.foundationdb.record.metadata.expressions.BaseKeyExpression
BaseKeyExpression.IllegalSubKeyException, BaseKeyExpression.UnsplittableKeyExpressionExceptionNested classes/interfaces inherited from interface com.apple.foundationdb.record.metadata.expressions.KeyExpression
KeyExpression.DeserializationException, KeyExpression.FanType, KeyExpression.InvalidExpressionException, KeyExpression.InvalidResultException, KeyExpression.NoSuchArgumentException, KeyExpression.SerializationExceptionNested classes/interfaces inherited from interface com.apple.foundationdb.record.PlanHashable
PlanHashable.PlanHashKind, PlanHashable.PlanHashMode -
Field Summary
Fields inherited from class com.apple.foundationdb.record.metadata.expressions.FunctionKeyExpression
arguments, nameFields inherited from interface com.apple.foundationdb.record.PlanHashable
CURRENT_FOR_CONTINUATION, CURRENT_LEGACY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintGet the expression for which a name is given.Get the expression to determine the name.validate(Descriptors.Descriptor descriptor) Methods inherited from class com.apple.foundationdb.record.lucene.LuceneFunctionKeyExpression
createsDuplicates, evaluateFunction, planHashMethods inherited from class com.apple.foundationdb.record.metadata.expressions.FunctionKeyExpression
basePlanHash, create, equals, equalsAtomic, evaluateMessage, expand, fromProto, getArguments, getChild, getName, groupBy, hashCode, resolveAndEncapsulateFunction, toKeyExpression, toProto, toStringMethods inherited from class com.apple.foundationdb.record.metadata.expressions.BaseKeyExpression
getSubKey, getSubKeyImpl, isPrefixKeyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.apple.foundationdb.record.metadata.expressions.KeyExpression
evaluate, evaluateMessageSingleton, evaluateSingleton, getSubKey, hasLosslessNormalization, hasProperInterfaces, hasRecordTypeKey, isPrefixKey, needsCopyingToPartialRecord, normalizeKeyForPositions, versionColumnsMethods inherited from interface com.apple.foundationdb.record.metadata.expressions.KeyExpressionWithChild
getChildrenMethods inherited from interface com.apple.foundationdb.record.PlanHashable
planHash, planHash
-
Constructor Details
-
LuceneFieldName
-
-
Method Details
-
getMinArguments
public int getMinArguments()- Specified by:
getMinArgumentsin classFunctionKeyExpression
-
getMaxArguments
public int getMaxArguments()- Specified by:
getMaxArgumentsin classFunctionKeyExpression
-
getColumnSize
public int getColumnSize() -
validate
- Specified by:
validatein interfaceKeyExpression- Overrides:
validatein classFunctionKeyExpression
-
getNamedExpression
Get the expression for which a name is given.- Returns:
- the expression that is named
-
getNameExpression
Get the expression to determine the name.- Returns:
- the expression to be evaluated to produce the name
-
toValue
- Specified by:
toValuein classFunctionKeyExpression
-