public class SimpleTextSegmentInfoFormat extends SegmentInfoFormat
FOR RECREATIONAL USE ONLY
Modifier and Type | Field and Description |
---|---|
(package private) static BytesRef |
SI_ATT_KEY |
(package private) static BytesRef |
SI_ATT_VALUE |
(package private) static BytesRef |
SI_DIAG_KEY |
(package private) static BytesRef |
SI_DIAG_VALUE |
(package private) static BytesRef |
SI_DOCCOUNT |
static java.lang.String |
SI_EXTENSION |
(package private) static BytesRef |
SI_FILE |
(package private) static BytesRef |
SI_ID |
(package private) static BytesRef |
SI_MIN_VERSION |
(package private) static BytesRef |
SI_NUM_ATT |
(package private) static BytesRef |
SI_NUM_DIAG |
(package private) static BytesRef |
SI_NUM_FILES |
(package private) static BytesRef |
SI_SELECTOR_TYPE |
(package private) static BytesRef |
SI_SORT |
(package private) static BytesRef |
SI_SORT_FIELD |
(package private) static BytesRef |
SI_SORT_MISSING |
(package private) static BytesRef |
SI_SORT_REVERSE |
(package private) static BytesRef |
SI_SORT_TYPE |
(package private) static BytesRef |
SI_USECOMPOUND |
(package private) static BytesRef |
SI_VERSION |
Constructor and Description |
---|
SimpleTextSegmentInfoFormat() |
Modifier and Type | Method and Description |
---|---|
SegmentInfo |
read(Directory directory,
java.lang.String segmentName,
byte[] segmentID,
IOContext context)
Read
SegmentInfo data from a directory. |
private SortedNumericSelector.Type |
readNumericSelector(IndexInput input,
BytesRefBuilder scratch) |
private SortedSetSelector.Type |
readSetSelector(IndexInput input,
BytesRefBuilder scratch) |
private java.lang.String |
readString(int offset,
BytesRefBuilder scratch) |
void |
write(Directory dir,
SegmentInfo si,
IOContext ioContext)
Write
SegmentInfo data. |
static final BytesRef SI_VERSION
static final BytesRef SI_MIN_VERSION
static final BytesRef SI_DOCCOUNT
static final BytesRef SI_USECOMPOUND
static final BytesRef SI_NUM_DIAG
static final BytesRef SI_DIAG_KEY
static final BytesRef SI_DIAG_VALUE
static final BytesRef SI_NUM_ATT
static final BytesRef SI_ATT_KEY
static final BytesRef SI_ATT_VALUE
static final BytesRef SI_NUM_FILES
static final BytesRef SI_FILE
static final BytesRef SI_ID
static final BytesRef SI_SORT
static final BytesRef SI_SORT_FIELD
static final BytesRef SI_SORT_TYPE
static final BytesRef SI_SELECTOR_TYPE
static final BytesRef SI_SORT_REVERSE
static final BytesRef SI_SORT_MISSING
public static final java.lang.String SI_EXTENSION
public SegmentInfo read(Directory directory, java.lang.String segmentName, byte[] segmentID, IOContext context) throws java.io.IOException
SegmentInfoFormat
SegmentInfo
data from a directory.read
in class SegmentInfoFormat
directory
- directory to read fromsegmentName
- name of the segment to readsegmentID
- expected identifier for the segmentjava.io.IOException
- If an I/O error occursprivate java.lang.String readString(int offset, BytesRefBuilder scratch)
private SortedSetSelector.Type readSetSelector(IndexInput input, BytesRefBuilder scratch) throws java.io.IOException
java.io.IOException
private SortedNumericSelector.Type readNumericSelector(IndexInput input, BytesRefBuilder scratch) throws java.io.IOException
java.io.IOException
public void write(Directory dir, SegmentInfo si, IOContext ioContext) throws java.io.IOException
SegmentInfoFormat
SegmentInfo
data.
The codec must add its SegmentInfo filename(s) to info
before doing i/o.write
in class SegmentInfoFormat
java.io.IOException
- If an I/O error occurs