|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
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 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 new
segmentSuffix . |
|
PerDocWriteState(SegmentWriteState state)
Creates a PerDocWriteState , copying fields
from another and allocating a new bytesUsed . |
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 |