org.hibernate.search.metadata.impl
public class FieldDescriptorImpl extends Object implements FieldDescriptor
FieldSettingsDescriptor.Type| Constructor and Description |
|---|
FieldDescriptorImpl(DocumentFieldMetadata documentFieldMetadata) |
| Modifier and Type | Method and Description |
|---|---|
<T extends FieldSettingsDescriptor> |
as(Class<T> type)
Narrows the type of this descriptor down to the specified
type. |
Analyze |
getAnalyze() |
Analyzer |
getAnalyzer() |
float |
getBoost() |
FieldBridge |
getFieldBridge() |
Index |
getIndex() |
String |
getName()
Returns the Lucene
Document field name for this indexed property. |
Norms |
getNorms() |
Store |
getStore() |
TermVector |
getTermVector() |
FieldSettingsDescriptor.Type |
getType() |
boolean |
indexNull() |
String |
indexNullAs() |
String |
toString() |
public FieldDescriptorImpl(DocumentFieldMetadata documentFieldMetadata)
public String getName()
FieldSettingsDescriptorDocument field name for this indexed property.getName in interface FieldSettingsDescriptorpublic Index getIndex()
getIndex in interface FieldSettingsDescriptorIndex enum instance defining whether this field is indexedpublic Analyze getAnalyze()
getAnalyze in interface FieldSettingsDescriptorAnalyze enum instance defining the type of analyzing applied to this fieldpublic Store getStore()
getStore in interface FieldSettingsDescriptorStore enum instance defining whether the index value is stored in the index itselfpublic TermVector getTermVector()
getTermVector in interface FieldSettingsDescriptorTermVector enum instance defining whether and how term vectors are stored for this fieldpublic Norms getNorms()
getNorms in interface FieldSettingsDescriptorNorms enum instance defining whether and how norms are stored for this fieldpublic float getBoost()
getBoost in interface FieldSettingsDescriptorpublic FieldSettingsDescriptor.Type getType()
getType in interface FieldSettingsDescriptorType of this fieldpublic <T extends FieldSettingsDescriptor> T as(Class<T> type)
FieldSettingsDescriptortype. The appropriate
type should be checked beforehand by calling FieldSettingsDescriptor.getType().as in interface FieldSettingsDescriptorT - the type to narrow down totype - class object representing the descriptor type to narrow down to
topublic String indexNullAs()
indexNullAs in interface FieldDescriptornull values. null in case null values are not indexedpublic boolean indexNull()
indexNull in interface FieldDescriptortrue if null values are indexed, false otherwiseFieldDescriptor.indexNullAs()public FieldBridge getFieldBridge()
getFieldBridge in interface FieldDescriptorpublic Analyzer getAnalyzer()
getAnalyzer in interface FieldDescriptornull if the field is not analyzedCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved