public class LazyDocument.LazyField extends java.lang.Object implements IndexableField
Modifier and Type | Field and Description |
---|---|
private int |
fieldNum |
private java.lang.String |
name |
(package private) IndexableField |
realValue |
Modifier | Constructor and Description |
---|---|
private |
LazyField(java.lang.String name,
int fieldNum) |
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. |
private IndexableField |
getRealValue() |
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, wait
getCharSequenceValue
private java.lang.String name
private int fieldNum
volatile IndexableField realValue
public boolean hasBeenLoaded()
private IndexableField getRealValue()
public java.lang.String name()
IndexableField
name
in interface IndexableField
public BytesRef binaryValue()
IndexableField
binaryValue
in interface IndexableField
public java.lang.String stringValue()
IndexableField
stringValue
in interface IndexableField
public java.io.Reader readerValue()
IndexableField
readerValue
in interface IndexableField
public java.lang.Number numericValue()
IndexableField
numericValue
in interface IndexableField
public IndexableFieldType fieldType()
IndexableField
IndexableFieldType
describing the properties
of this field.fieldType
in interface IndexableField
public TokenStream tokenStream(Analyzer analyzer, TokenStream reuse)
IndexableField
tokenStream
in interface IndexableField
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.