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 valueIndexableFieldTypedescribing the properties of this field.Non-null if this field has a string value(package private) TDescribes 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:IndexableFieldField name- Specified by:
namein interfaceIndexableField
-
fieldType
Description copied from interface:IndexableFieldIndexableFieldTypedescribing the properties of this field.- Specified by:
fieldTypein interfaceIndexableField
-
tokenStream
Description copied from interface:IndexableFieldCreates the TokenStream used for indexing this field. If appropriate, implementations should use the given Analyzer to create the TokenStreams.- Specified by:
tokenStreamin 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:IndexableFieldNon-null if this field has a binary value- Specified by:
binaryValuein interfaceIndexableField
-
stringValue
Description copied from interface:IndexableFieldNon-null if this field has a string value- Specified by:
stringValuein interfaceIndexableField
-
getCharSequenceValue
Description copied from interface:IndexableFieldNon-null if this field has a string value- Specified by:
getCharSequenceValuein interfaceIndexableField
-
readerValue
Description copied from interface:IndexableFieldNon-null if this field has a Reader value- Specified by:
readerValuein interfaceIndexableField
-
numericValue
Description copied from interface:IndexableFieldNon-null if this field has a numeric value- Specified by:
numericValuein interfaceIndexableField
-
storedValue
Description copied from interface:IndexableFieldStored value. This method is called to populate stored fields and must return a non-null value if the field stored.- Specified by:
storedValuein interfaceIndexableField
-
invertableType
Description copied from interface:IndexableFieldDescribes how this field should be inverted. This must return a non-null value if the field indexes terms and postings.- Specified by:
invertableTypein interfaceIndexableField
-