org.apache.lucene.codecs.lucene40
Class Lucene40NormsFormat.Lucene40NormsDocValuesConsumer

java.lang.Object
  extended by org.apache.lucene.codecs.PerDocConsumer
      extended by org.apache.lucene.codecs.lucene40.values.DocValuesWriterBase
          extended by org.apache.lucene.codecs.lucene40.Lucene40DocValuesConsumer
              extended by org.apache.lucene.codecs.lucene40.Lucene40NormsFormat.Lucene40NormsDocValuesConsumer
All Implemented Interfaces:
Closeable
Enclosing class:
Lucene40NormsFormat

public static class Lucene40NormsFormat.Lucene40NormsDocValuesConsumer
extends Lucene40DocValuesConsumer

Lucene 4.0 PerDocConsumer implementation that uses compound file.

See Also:
Lucene40DocValuesFormat
WARNING: This API is experimental and might change in incompatible ways in the next release.

Field Summary
 
Fields inherited from class org.apache.lucene.codecs.lucene40.Lucene40DocValuesConsumer
DOC_VALUES_SEGMENT_SUFFIX
 
Fields inherited from class org.apache.lucene.codecs.lucene40.values.DocValuesWriterBase
context, DATA_EXTENSION, INDEX_EXTENSION, segmentName
 
Constructor Summary
Lucene40NormsFormat.Lucene40NormsDocValuesConsumer(PerDocWriteState state, String segmentSuffix)
          Sole constructor.
 
Method Summary
protected  boolean canMerge(FieldInfo info)
          Returns true iff the given field can be merged ie.
protected  DocValues getDocValuesForMerge(AtomicReader reader, FieldInfo info)
          Returns a DocValues instance for merging from the given reader for the given FieldInfo.
protected  DocValues.Type getDocValuesType(FieldInfo info)
          Returns the DocValues DocValues.Type for the given FieldInfo.
 
Methods inherited from class org.apache.lucene.codecs.lucene40.Lucene40DocValuesConsumer
abort, close, getDirectory
 
Methods inherited from class org.apache.lucene.codecs.lucene40.values.DocValuesWriterBase
addValuesField, getComparator
 
Methods inherited from class org.apache.lucene.codecs.PerDocConsumer
merge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lucene40NormsFormat.Lucene40NormsDocValuesConsumer

public Lucene40NormsFormat.Lucene40NormsDocValuesConsumer(PerDocWriteState state,
                                                          String segmentSuffix)
Sole constructor.

Method Detail

getDocValuesForMerge

protected DocValues getDocValuesForMerge(AtomicReader reader,
                                         FieldInfo info)
                                  throws IOException
Description copied from class: PerDocConsumer
Returns a DocValues instance for merging from the given reader for the given FieldInfo. This method is used for merging and uses AtomicReader.docValues(String) by default.

To enable DocValues merging for different DocValues than the default override this method accordingly.

Overrides:
getDocValuesForMerge in class PerDocConsumer
Throws:
IOException

canMerge

protected boolean canMerge(FieldInfo info)
Description copied from class: PerDocConsumer
Returns true iff the given field can be merged ie. has DocValues. By default this method uses FieldInfo.hasDocValues().

To enable DocValues merging for different DocValues than the default override this method accordingly.

Overrides:
canMerge in class PerDocConsumer

getDocValuesType

protected DocValues.Type getDocValuesType(FieldInfo info)
Description copied from class: PerDocConsumer
Returns the DocValues DocValues.Type for the given FieldInfo. By default this method uses FieldInfo.getDocValuesType().

To enable DocValues merging for different DocValues than the default override this method accordingly.

Overrides:
getDocValuesType in class PerDocConsumer


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