Interface LuceneIndexExpressions.DocumentDestination<T extends LuceneIndexExpressions.RecordSource<T>>
- Type Parameters:
T- the actual type of the source
- All Known Implementing Classes:
LuceneDocumentFromRecord.DocumentFieldList
- Enclosing class:
- LuceneIndexExpressions
public static interface LuceneIndexExpressions.DocumentDestination<T extends LuceneIndexExpressions.RecordSource<T>>
An actual document / document meta-data.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddField(T source, String fieldName, Object value, LuceneIndexExpressions.DocumentFieldType type, boolean fieldNameOverride, List<String> namedFieldPath, String namedFieldSuffix, boolean stored, boolean sorted, List<Integer> overriddenKeyRanges, int groupingKeyIndex, int keyIndex, Map<String, Object> fieldConfigs) Add fields to the destination of the "getFields" traversal.
-
Method Details
-
addField
void addField(@Nonnull T source, @Nonnull String fieldName, @Nullable Object value, @Nonnull LuceneIndexExpressions.DocumentFieldType type, boolean fieldNameOverride, @Nullable List<String> namedFieldPath, @Nullable String namedFieldSuffix, boolean stored, boolean sorted, @Nonnull List<Integer> overriddenKeyRanges, int groupingKeyIndex, int keyIndex, @Nonnull Map<String, Object> fieldConfigs) Add fields to the destination of the "getFields" traversal.- Parameters:
source- the RecordSource for the field to be addedfieldName- the (full) field namevalue- the last element of the field nametype- the type of the fieldfieldNameOverride- whether we are overriding field names (map support)namedFieldPath- the relative path to the field (from the source)namedFieldSuffix- the replaced suffix for the field (the map-replaced part)stored- whether the field has stored datasorted- whether the field has sorted dataoverriddenKeyRanges- -groupingKeyIndex- -keyIndex- -fieldConfigs- -
-