|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.index.StoredFieldVisitor
public abstract class StoredFieldVisitor
Expert: provides a low-level means of accessing the stored field
values in an index. See IndexReader.document(int,
StoredFieldVisitor)
.
See DocumentStoredFieldVisitor
, which is a
StoredFieldVisitor
that builds the
Document
containing all stored fields. This is
used by IndexReader.document(int)
.
Nested Class Summary | |
---|---|
static class |
StoredFieldVisitor.Status
Enumeration of possible return values for needsField(org.apache.lucene.index.FieldInfo) . |
Constructor Summary | |
---|---|
protected |
StoredFieldVisitor()
Sole constructor. |
Method Summary | |
---|---|
void |
binaryField(FieldInfo fieldInfo,
byte[] value)
Process a binary field. |
void |
doubleField(FieldInfo fieldInfo,
double value)
Process a double numeric field. |
void |
floatField(FieldInfo fieldInfo,
float value)
Process a float numeric field. |
void |
intField(FieldInfo fieldInfo,
int value)
Process a int numeric field. |
void |
longField(FieldInfo fieldInfo,
long value)
Process a long numeric field. |
abstract StoredFieldVisitor.Status |
needsField(FieldInfo fieldInfo)
Hook before processing a field. |
void |
stringField(FieldInfo fieldInfo,
String value)
Process a string field |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected StoredFieldVisitor()
Method Detail |
---|
public void binaryField(FieldInfo fieldInfo, byte[] value) throws IOException
value
- newly allocated byte array with the binary contents.
IOException
public void stringField(FieldInfo fieldInfo, String value) throws IOException
IOException
public void intField(FieldInfo fieldInfo, int value) throws IOException
IOException
public void longField(FieldInfo fieldInfo, long value) throws IOException
IOException
public void floatField(FieldInfo fieldInfo, float value) throws IOException
IOException
public void doubleField(FieldInfo fieldInfo, double value) throws IOException
IOException
public abstract StoredFieldVisitor.Status needsField(FieldInfo fieldInfo) throws IOException
StoredFieldVisitor.Status
representing whether
they need that particular field or not, or to stop processing
entirely.
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |