public class LazyDocument.LazyField extends java.lang.Object implements IndexableField
| Modifier and Type | Method and Description |
|---|---|
BytesRef |
binaryValue()
Non-null if this field has a binary value
|
IndexableFieldType |
fieldType()
IndexableFieldType describing the properties
of this field. |
boolean |
hasBeenLoaded()
non-private for test only access
|
java.lang.String |
name()
Field name
|
java.lang.Number |
numericValue()
Non-null if this field has a numeric value
|
java.io.Reader |
readerValue()
Non-null if this field has a Reader value
|
java.lang.String |
stringValue()
Non-null if this field has a string value
|
TokenStream |
tokenStream(Analyzer analyzer,
TokenStream reuse)
Creates the TokenStream used for indexing this field.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCharSequenceValuepublic boolean hasBeenLoaded()
public java.lang.String name()
IndexableFieldname in interface IndexableFieldpublic BytesRef binaryValue()
IndexableFieldbinaryValue in interface IndexableFieldpublic java.lang.String stringValue()
IndexableFieldstringValue in interface IndexableFieldpublic java.io.Reader readerValue()
IndexableFieldreaderValue in interface IndexableFieldpublic java.lang.Number numericValue()
IndexableFieldnumericValue in interface IndexableFieldpublic IndexableFieldType fieldType()
IndexableFieldIndexableFieldType describing the properties
of this field.fieldType in interface IndexableFieldpublic TokenStream tokenStream(Analyzer analyzer, TokenStream reuse)
IndexableFieldtokenStream in interface IndexableFieldanalyzer - 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.Copyright © 2000–2025 The Apache Software Foundation. All rights reserved.