org.apache.lucene.codecs
Class NormsFormat

java.lang.Object
  extended by org.apache.lucene.codecs.NormsFormat
Direct Known Subclasses:
Lucene40NormsFormat

public abstract class NormsFormat
extends Object

format for normalization factors


Constructor Summary
protected NormsFormat()
          Sole constructor.
 
Method Summary
abstract  PerDocConsumer docsConsumer(PerDocWriteState state)
          Returns a PerDocConsumer to write norms to the index.
abstract  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

NormsFormat

protected NormsFormat()
Sole constructor. (For invocation by subclass constructors, typically implicit.)

Method Detail

docsConsumer

public abstract PerDocConsumer docsConsumer(PerDocWriteState state)
                                     throws IOException
Returns a PerDocConsumer to write norms to the index.

Throws:
IOException

docsProducer

public abstract PerDocProducer docsProducer(SegmentReadState state)
                                     throws IOException
Returns a PerDocProducer to read norms from the index.

Throws:
IOException


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