|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.AttributeSource org.apache.lucene.queryParser.core.config.AbstractQueryConfig org.apache.lucene.queryParser.core.config.QueryConfigHandler
public abstract class QueryConfigHandler
This class can be used to hold any query configuration and no field
configuration. For field configuration, it creates a empty
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.
This class extends AttributeSource
, so Attribute
s can be
attached to it.
The class that extends QueryConfigHandler
should also provide
FieldConfig
objects for each collection field.
Attribute
,
FieldConfig
,
FieldConfigListener
,
QueryConfigHandler
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource |
---|
org.apache.lucene.util.AttributeSource.AttributeFactory, org.apache.lucene.util.AttributeSource.State |
Constructor Summary | |
---|---|
QueryConfigHandler()
|
Method Summary | |
---|---|
void |
addFieldConfigListener(FieldConfigListener listener)
Adds a listener. |
FieldConfig |
getFieldConfig(CharSequence fieldName)
Deprecated. use getFieldConfig(String) instead |
FieldConfig |
getFieldConfig(String fieldName)
Returns an implementation of FieldConfig for a specific field name. |
Methods inherited from class org.apache.lucene.queryParser.core.config.AbstractQueryConfig |
---|
addAttribute, get, get, has, set, unset |
Methods inherited from class org.apache.lucene.util.AttributeSource |
---|
addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryConfigHandler()
Method Detail |
---|
@Deprecated public FieldConfig getFieldConfig(CharSequence fieldName)
getFieldConfig(String)
instead
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 name
FieldConfig
object containing the field name
configuration or null
, if the implemented
QueryConfigHandler
has no configuration for that fieldpublic 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 name
FieldConfig
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 added
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |