Module org.apache.lucene.core
Package org.apache.lucene.index
Class IndexingChain.ReservedField<T extends IndexableField>
java.lang.Object
org.apache.lucene.index.IndexingChain.ReservedField<T>
- All Implemented Interfaces:
IndexableField
- Enclosing class:
IndexingChain
static final class IndexingChain.ReservedField<T extends IndexableField>
extends Object
implements IndexableField
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNon-null if this field has a binary valueIndexableFieldType
describing the properties of this field.Non-null if this field has a string value(package private) T
Describes how this field should be inverted.name()
Field nameNon-null if this field has a numeric valueNon-null if this field has a Reader valueStored value.Non-null if this field has a string valuetokenStream
(Analyzer analyzer, TokenStream reuse) Creates the TokenStream used for indexing this field.
-
Field Details
-
delegate
-
-
Constructor Details
-
ReservedField
-
-
Method Details
-
getDelegate
T getDelegate() -
name
Description copied from interface:IndexableField
Field name- Specified by:
name
in interfaceIndexableField
-
fieldType
Description copied from interface:IndexableField
IndexableFieldType
describing the properties of this field.- Specified by:
fieldType
in interfaceIndexableField
-
tokenStream
Description copied from interface:IndexableField
Creates the TokenStream used for indexing this field. If appropriate, implementations should use the given Analyzer to create the TokenStreams.- Specified by:
tokenStream
in interfaceIndexableField
- Parameters:
analyzer
- Analyzer that should be used to create the TokenStreams fromreuse
- TokenStream for a previous instance of this field name. This allows custom field types (like StringField and NumericField) that do not use the analyzer to still have good performance. Note: the passed-in type may be inappropriate, for example if you mix up different types of Fields for the same field name. So it's the responsibility of the implementation to check.- Returns:
- TokenStream value for indexing the document. Should always return a non-null value if the field is to be indexed
-
binaryValue
Description copied from interface:IndexableField
Non-null if this field has a binary value- Specified by:
binaryValue
in interfaceIndexableField
-
stringValue
Description copied from interface:IndexableField
Non-null if this field has a string value- Specified by:
stringValue
in interfaceIndexableField
-
getCharSequenceValue
Description copied from interface:IndexableField
Non-null if this field has a string value- Specified by:
getCharSequenceValue
in interfaceIndexableField
-
readerValue
Description copied from interface:IndexableField
Non-null if this field has a Reader value- Specified by:
readerValue
in interfaceIndexableField
-
numericValue
Description copied from interface:IndexableField
Non-null if this field has a numeric value- Specified by:
numericValue
in interfaceIndexableField
-
storedValue
Description copied from interface:IndexableField
Stored value. This method is called to populate stored fields and must return a non-null value if the field stored.- Specified by:
storedValue
in interfaceIndexableField
-
invertableType
Description copied from interface:IndexableField
Describes how this field should be inverted. This must return a non-null value if the field indexes terms and postings.- Specified by:
invertableType
in interfaceIndexableField
-