|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.codecs.PerDocProducer org.apache.lucene.codecs.PerDocProducerBase org.apache.lucene.codecs.lucene40.Lucene40DocValuesProducer
public class Lucene40DocValuesProducer
Lucene 4.0 PerDocProducer implementation that uses compound file.
Lucene40DocValuesFormat
Field Summary | |
---|---|
protected TreeMap<String,DocValues> |
docValues
Maps field name to DocValues instance. |
Constructor Summary | |
---|---|
Lucene40DocValuesProducer(SegmentReadState state,
String segmentSuffix)
Creates a new Lucene40DocValuesProducer instance and loads all
DocValues instances for this segment and codec. |
Method Summary | |
---|---|
protected void |
closeInternal(Collection<? extends Closeable> closeables)
Closes provided Closables. |
protected Map<String,DocValues> |
docValues()
Returns a map, mapping field names to doc values. |
protected DocValues |
loadDocValues(int docCount,
Directory dir,
String id,
DocValues.Type type,
IOContext context)
Loads a DocValues instance depending on the given DocValues.Type . |
Methods inherited from class org.apache.lucene.codecs.PerDocProducerBase |
---|
anyDocValuesFields, canLoad, close, docValues, docValuesId, getComparator, getDocValuesType, load |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final TreeMap<String,DocValues> docValues
DocValues
instance.
Constructor Detail |
---|
public Lucene40DocValuesProducer(SegmentReadState state, String segmentSuffix) throws IOException
Lucene40DocValuesProducer
instance and loads all
DocValues
instances for this segment and codec.
IOException
Method Detail |
---|
protected Map<String,DocValues> docValues()
PerDocProducerBase
docValues
in class PerDocProducerBase
protected void closeInternal(Collection<? extends Closeable> closeables) throws IOException
PerDocProducerBase
closeInternal
in class PerDocProducerBase
IOException
protected DocValues loadDocValues(int docCount, Directory dir, String id, DocValues.Type type, IOContext context) throws IOException
PerDocProducerBase
DocValues
instance depending on the given DocValues.Type
.
Codecs that use different implementations for a certain DocValues.Type
can
simply override this method and return their custom implementations.
loadDocValues
in class PerDocProducerBase
docCount
- number of documents in the segmentdir
- the Directory
to load the DocValues
fromid
- the unique file ID within the segmenttype
- the type to load
DocValues
instance for the given type
IOException
- if an IOException
occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |