public class FieldConfig extends AbstractQueryConfig
AttributeSource.QueryConfigHandler,
AttributeAttributeSource.AttributeFactory, AttributeSource.State| Constructor and Description |
|---|
FieldConfig(CharSequence fieldName)
Deprecated.
use
FieldConfig(String) instead |
FieldConfig(String fieldName)
Constructs a
FieldConfig |
| Modifier and Type | Method and Description |
|---|---|
String |
getField()
Returns the field name this configuration represents.
|
CharSequence |
getFieldName()
Deprecated.
use
getField() instead |
String |
toString()
Returns a string representation of the object.
|
addAttribute, get, get, has, set, unsetaddAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState@Deprecated public FieldConfig(CharSequence fieldName)
FieldConfig(String) insteadFieldConfigfieldName - the field name, it cannot be nullIllegalArgumentException - if the field name is nullpublic FieldConfig(String fieldName)
FieldConfigfieldName - the field name, it cannot be nullIllegalArgumentException - if the field name is null@Deprecated public CharSequence getFieldName()
getField() insteadpublic String getField()
public String toString()
AttributeSourcetoString method
returns a string that "textually represents" this object.
WARNING: For backwards compatibility this method is implemented as in Lucene 2.9/3.0. In Lucene 4.0 this default implementation will be removed.
It is recommeneded to use AttributeSource.reflectAsString(boolean) or AttributeSource.reflectWith(org.apache.lucene.util.AttributeReflector)
to get a well-defined output of AttributeSource's internals.
toString in class AttributeSource