org.apache.lucene.codecs.lucene40
Class Lucene40NormsFormat

java.lang.Object
  extended by org.apache.lucene.codecs.NormsFormat
      extended by org.apache.lucene.codecs.lucene40.Lucene40NormsFormat

public class Lucene40NormsFormat
extends NormsFormat

Lucene 4.0 Norms Format.

Files:

Norms are implemented as DocValues, so other than file extension, norms are written exactly the same way as DocValues.

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

Nested Class Summary
static class Lucene40NormsFormat.Lucene40NormsDocValuesConsumer
          Lucene 4.0 PerDocConsumer implementation that uses compound file.
static class Lucene40NormsFormat.Lucene40NormsDocValuesProducer
          Lucene 4.0 PerDocProducer implementation that uses compound file.
 
Constructor Summary
Lucene40NormsFormat()
          Sole constructor.
 
Method Summary
 PerDocConsumer docsConsumer(PerDocWriteState state)
          Returns a PerDocConsumer to write norms to the index.
 PerDocProducer docsProducer(SegmentReadState state)
          Returns a PerDocProducer to read norms from the index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lucene40NormsFormat

public Lucene40NormsFormat()
Sole constructor.

Method Detail

docsConsumer

public PerDocConsumer docsConsumer(PerDocWriteState state)
                            throws IOException
Description copied from class: NormsFormat
Returns a PerDocConsumer to write norms to the index.

Specified by:
docsConsumer in class NormsFormat
Throws:
IOException

docsProducer

public PerDocProducer docsProducer(SegmentReadState state)
                            throws IOException
Description copied from class: NormsFormat
Returns a PerDocProducer to read norms from the index.

Specified by:
docsProducer in class NormsFormat
Throws:
IOException


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