public class Lucene40DocValuesProducer extends PerDocProducerBase
Lucene40DocValuesFormat
Modifier and Type | Field and Description |
---|---|
protected TreeMap<String,DocValues> |
docValues
Maps field name to
DocValues instance. |
Constructor and Description |
---|
Lucene40DocValuesProducer(SegmentReadState state,
String segmentSuffix)
Creates a new
Lucene40DocValuesProducer instance and loads all
DocValues instances for this segment and codec. |
Modifier and Type | Method and Description |
---|---|
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 . |
anyDocValuesFields, canLoad, close, docValues, docValuesId, getComparator, getDocValuesType, load
public Lucene40DocValuesProducer(SegmentReadState state, String segmentSuffix) throws IOException
Lucene40DocValuesProducer
instance and loads all
DocValues
instances for this segment and codec.IOException
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 loadDocValues
instance for the given typeIOException
- if an IOException
occursCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.