| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.index.PerDocWriteState
public class PerDocWriteState
Encapsulates all necessary state to initiate a PerDocConsumer and
 create all necessary files in order to consume and merge per-document values.
| Field Summary | |
|---|---|
|  Counter | bytesUsedNumber of bytes allocated in RAM to hold this state. | 
|  IOContext | contextIOContextto use for all file writing. | 
|  Directory | directoryDirectoryto write all files to. | 
|  InfoStream | infoStreamInfoStream used for debugging. | 
|  SegmentInfo | segmentInfoSegmentInfodescribing this segment. | 
|  String | segmentSuffixSegment suffix to pass to IndexFileNames.segmentFileName(String,String,String). | 
| Constructor Summary | |
|---|---|
| PerDocWriteState(InfoStream infoStream,
                 Directory directory,
                 SegmentInfo segmentInfo,
                 Counter bytesUsed,
                 String segmentSuffix,
                 IOContext context)Creates a PerDocWriteState. | |
| PerDocWriteState(PerDocWriteState state,
                 String segmentSuffix)Creates a PerDocWriteState, copying fields
  from another (copy constructor) but setting a newsegmentSuffix. | |
| PerDocWriteState(SegmentWriteState state)Creates a PerDocWriteState, copying fields
  from another and allocating a newbytesUsed. | |
| Method Summary | 
|---|
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public final InfoStream infoStream
public final Directory directory
Directory to write all files to.
public final SegmentInfo segmentInfo
SegmentInfo describing this segment.
public final Counter bytesUsed
public final String segmentSuffix
IndexFileNames.segmentFileName(String,String,String).
public final IOContext context
IOContext to use for all file writing.
| Constructor Detail | 
|---|
public PerDocWriteState(InfoStream infoStream,
                        Directory directory,
                        SegmentInfo segmentInfo,
                        Counter bytesUsed,
                        String segmentSuffix,
                        IOContext context)
PerDocWriteState.
public PerDocWriteState(SegmentWriteState state)
PerDocWriteState, copying fields
  from another and allocating a new bytesUsed.
public PerDocWriteState(PerDocWriteState state,
                        String segmentSuffix)
PerDocWriteState, copying fields
  from another (copy constructor) but setting a new
  segmentSuffix.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||