org.apache.lucene.document
Class StoredField

java.lang.Object
  extended by org.apache.lucene.document.Field
      extended by org.apache.lucene.document.StoredField
All Implemented Interfaces:
IndexableField

public final class StoredField
extends Field

A field whose value is stored so that IndexSearcher.doc(int) and IndexReader.document(int, org.apache.lucene.index.StoredFieldVisitor) will return the field and its value.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.document.Field
Field.Index, Field.Store, Field.TermVector
 
Field Summary
static FieldType TYPE
           
 
Fields inherited from class org.apache.lucene.document.Field
boost, fieldsData, name, numericTokenStream, tokenStream, type
 
Constructor Summary
StoredField(String name, byte[] value)
           
StoredField(String name, byte[] value, int offset, int length)
           
StoredField(String name, BytesRef value)
           
StoredField(String name, double value)
           
StoredField(String name, float value)
           
StoredField(String name, int value)
           
StoredField(String name, long value)
           
StoredField(String name, String value)
           
 
Method Summary
 
Methods inherited from class org.apache.lucene.document.Field
binaryValue, boost, fieldType, name, numericValue, readerValue, setBoost, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValue, toString, translateFieldType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final FieldType TYPE
Constructor Detail

StoredField

public StoredField(String name,
                   byte[] value)

StoredField

public StoredField(String name,
                   byte[] value,
                   int offset,
                   int length)

StoredField

public StoredField(String name,
                   BytesRef value)

StoredField

public StoredField(String name,
                   String value)

StoredField

public StoredField(String name,
                   int value)

StoredField

public StoredField(String name,
                   float value)

StoredField

public StoredField(String name,
                   long value)

StoredField

public StoredField(String name,
                   double value)


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.