Class FieldConfig
- java.lang.Object
-
- org.apache.lucene.util.AttributeSource
-
- org.apache.lucene.queryParser.core.config.AbstractQueryConfig
-
- org.apache.lucene.queryParser.core.config.FieldConfig
-
public class FieldConfig extends AbstractQueryConfig
This class represents a field configuration. Every configuration should be set using the methods inherited fromAttributeSource
.- See Also:
QueryConfigHandler
,Attribute
-
-
Constructor Summary
Constructors Constructor Description FieldConfig(CharSequence fieldName)
Deprecated.useFieldConfig(String)
insteadFieldConfig(String fieldName)
Constructs aFieldConfig
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getField()
Returns the field name this configuration represents.CharSequence
getFieldName()
Deprecated.usegetField()
insteadString
toString()
-
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
-
-
-
-
Constructor Detail
-
FieldConfig
@Deprecated public FieldConfig(CharSequence fieldName)
Deprecated.useFieldConfig(String)
insteadConstructs aFieldConfig
- Parameters:
fieldName
- the field name, it cannot be null- Throws:
IllegalArgumentException
- if the field name is null
-
FieldConfig
public FieldConfig(String fieldName)
Constructs aFieldConfig
- Parameters:
fieldName
- the field name, it cannot be null- Throws:
IllegalArgumentException
- if the field name is null
-
-
Method Detail
-
getFieldName
@Deprecated public CharSequence getFieldName()
Deprecated.usegetField()
insteadReturns the field name this configuration represents.- Returns:
- the field name
-
getField
public String getField()
Returns the field name this configuration represents.- Returns:
- the field name
-
toString
public String toString()
- Overrides:
toString
in classorg.apache.lucene.util.AttributeSource
-
-