public class PerDocWriteState extends Object
PerDocConsumer
and
create all necessary files in order to consume and merge per-document values.Modifier and Type | Field and Description |
---|---|
Counter |
bytesUsed
Number of bytes allocated in RAM to hold this state.
|
IOContext |
context
IOContext to use for all file writing. |
Directory |
directory
Directory to write all files to. |
InfoStream |
infoStream
InfoStream used for debugging.
|
SegmentInfo |
segmentInfo
SegmentInfo describing this segment. |
String |
segmentSuffix
Segment suffix to pass to
IndexFileNames.segmentFileName(String,String,String) . |
Constructor and Description |
---|
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 new
segmentSuffix . |
PerDocWriteState(SegmentWriteState state)
Creates a
PerDocWriteState , copying fields
from another and allocating a new bytesUsed . |
public final InfoStream infoStream
public final SegmentInfo segmentInfo
SegmentInfo
describing this segment.public final Counter bytesUsed
public final String segmentSuffix
IndexFileNames.segmentFileName(String,String,String)
.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
.Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.