Module org.elasticsearch.server
Interface SortedFieldObserverFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory for creating
SortedFieldObserver instances during sorted field writing.
The factory is injected into AbstractTSDBDocValuesConsumer at construction time.
It is called once per sorted field to obtain an observer for that field. Implementations
decide based on field properties and format configuration whether to return a real
observer or SortedFieldObserver.NOOP.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SortedFieldObserverFactoryFactory that always returnsSortedFieldObserver.NOOP. -
Method Summary
Modifier and TypeMethodDescriptioncreate(org.apache.lucene.index.FieldInfo field) Creates an observer for the given sorted field.
-
Field Details
-
NOOP
Factory that always returnsSortedFieldObserver.NOOP.
-
-
Method Details
-
create
Creates an observer for the given sorted field.- Parameters:
field- the field being written- Returns:
- an observer for this field, or
SortedFieldObserver.NOOPif no observation is needed
-