org.apache.lucene.codecs.simpletext
Class SimpleTextNormsFormat.SimpleTextNormsPerDocConsumer

java.lang.Object
  extended by org.apache.lucene.codecs.PerDocConsumer
      extended by org.apache.lucene.codecs.simpletext.SimpleTextNormsFormat.SimpleTextNormsPerDocConsumer
All Implemented Interfaces:
Closeable
Enclosing class:
SimpleTextNormsFormat

public static class SimpleTextNormsFormat.SimpleTextNormsPerDocConsumer
extends PerDocConsumer

Writes plain-text norms.

FOR RECREATIONAL USE ONLY

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

Field Summary
protected  String segmentSuffix
           
protected  PerDocWriteState state
           
 
Constructor Summary
SimpleTextNormsFormat.SimpleTextNormsPerDocConsumer(PerDocWriteState state)
           
 
Method Summary
 void abort()
           
 DocValuesConsumer addValuesField(DocValues.Type type, FieldInfo field)
           
protected  boolean canMerge(FieldInfo info)
           
 void close()
           
protected  DocValues getDocValuesForMerge(AtomicReader reader, FieldInfo info)
           
protected  DocValues.Type getDocValuesType(FieldInfo info)
           
 
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
 

Field Detail

state

protected final PerDocWriteState state

segmentSuffix

protected final String segmentSuffix
Constructor Detail

SimpleTextNormsFormat.SimpleTextNormsPerDocConsumer

public SimpleTextNormsFormat.SimpleTextNormsPerDocConsumer(PerDocWriteState state)
Method Detail

getDocValuesForMerge

protected DocValues getDocValuesForMerge(AtomicReader reader,
                                         FieldInfo info)
                                  throws IOException
Overrides:
getDocValuesForMerge in class PerDocConsumer
Throws:
IOException

canMerge

protected boolean canMerge(FieldInfo info)
Overrides:
canMerge in class PerDocConsumer

getDocValuesType

protected DocValues.Type getDocValuesType(FieldInfo info)
Overrides:
getDocValuesType in class PerDocConsumer

abort

public void abort()

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class PerDocConsumer
Throws:
IOException

addValuesField

public DocValuesConsumer addValuesField(DocValues.Type type,
                                        FieldInfo field)
                                 throws IOException
Specified by:
addValuesField in class PerDocConsumer
Throws:
IOException


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