public abstract class QueryConfigHandler extends AbstractQueryConfig
FieldConfig
object and delegate it to field config listeners,
these are responsible for setting up all the field configuration.
QueryConfigHandler
should be extended by classes that intends to
provide configuration to QueryNodeProcessor
objects.
The class that extends QueryConfigHandler
should also provide
FieldConfig
objects for each collection field.FieldConfig
,
FieldConfigListener
,
QueryConfigHandler
Constructor and Description |
---|
QueryConfigHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addFieldConfigListener(FieldConfigListener listener)
Adds a listener.
|
FieldConfig |
getFieldConfig(String fieldName)
Returns an implementation of
FieldConfig for a specific field name. |
get, has, set, unset
public FieldConfig getFieldConfig(String fieldName)
FieldConfig
for a specific field name. If the implemented
QueryConfigHandler
does not know a specific field name, it may
return null
, indicating there is no configuration for that
field.fieldName
- the field nameFieldConfig
object containing the field name
configuration or null
, if the implemented
QueryConfigHandler
has no configuration for that fieldpublic void addFieldConfigListener(FieldConfigListener listener)
listener
- the listener to be addedCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.