Package org.nuxeo.elasticsearch.config
Class ESHintQueryBuilderDescriptor
java.lang.Object
org.nuxeo.elasticsearch.config.ESHintQueryBuilderDescriptor
- All Implemented Interfaces:
Descriptor
This descriptor allows to add a Elasticsearch Hint.
- Since:
- 11.1
-
Field Summary
Modifier and TypeFieldDescriptionprotected Class<? extends ESHintQueryBuilder>
protected String
boolean
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
During merge if a descriptor whose doesRemove() returns true is encountered, the merge chain is reset and started again on next descriptor.getId()
The descriptor id, descriptors with same id are merged.Class<? extends ESHintQueryBuilder>
getKlass()
getName()
merge
(Descriptor descriptor) Returns a descriptor representingother
merged intothis
-
Field Details
-
name
-
klass
-
remove
public boolean remove
-
-
Constructor Details
-
ESHintQueryBuilderDescriptor
public ESHintQueryBuilderDescriptor()
-
-
Method Details
-
getId
Description copied from interface:Descriptor
The descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()
for exemple.- Specified by:
getId
in interfaceDescriptor
-
merge
Description copied from interface:Descriptor
Returns a descriptor representingother
merged intothis
Default implementation returns
other
.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
-
doesRemove
public boolean doesRemove()Description copied from interface:Descriptor
During merge if a descriptor whose doesRemove() returns true is encountered, the merge chain is reset and started again on next descriptor.If the last descriptor of same id doesRemove() return true, the descriptor for this id will be
null
.- Specified by:
doesRemove
in interfaceDescriptor
-
getName
-
getKlass
-
newInstance
-