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()
FieldSettingsDescriptor
Document
field name for this indexed property.getName
in interface FieldSettingsDescriptor
public Index getIndex()
getIndex
in interface FieldSettingsDescriptor
Index
enum instance defining whether this field is indexedpublic Analyze getAnalyze()
getAnalyze
in interface FieldSettingsDescriptor
Analyze
enum instance defining the type of analyzing applied to this fieldpublic Store getStore()
getStore
in interface FieldSettingsDescriptor
Store
enum instance defining whether the index value is stored in the index itselfpublic TermVector getTermVector()
getTermVector
in interface FieldSettingsDescriptor
TermVector
enum instance defining whether and how term vectors are stored for this fieldpublic Norms getNorms()
getNorms
in interface FieldSettingsDescriptor
Norms
enum instance defining whether and how norms are stored for this fieldpublic float getBoost()
getBoost
in interface FieldSettingsDescriptor
public FieldSettingsDescriptor.Type getType()
getType
in interface FieldSettingsDescriptor
Type
of this fieldpublic <T extends FieldSettingsDescriptor> T as(Class<T> type)
FieldSettingsDescriptor
type
. The appropriate
type should be checked beforehand by calling FieldSettingsDescriptor.getType()
.as
in interface FieldSettingsDescriptor
T
- the type to narrow down totype
- class object representing the descriptor type to narrow down to
topublic String indexNullAs()
indexNullAs
in interface FieldDescriptor
null
values. null
in case null values are not indexedpublic boolean indexNull()
indexNull
in interface FieldDescriptor
true
if null
values are indexed, false
otherwiseFieldDescriptor.indexNullAs()
public FieldBridge getFieldBridge()
getFieldBridge
in interface FieldDescriptor
public Analyzer getAnalyzer()
getAnalyzer
in interface FieldDescriptor
null
if the field is not analyzedCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved