Class SimpleTextSegmentInfoFormat
- java.lang.Object
-
- org.apache.lucene.codecs.SegmentInfoFormat
-
- org.apache.lucene.codecs.simpletext.SimpleTextSegmentInfoFormat
-
public class SimpleTextSegmentInfoFormat extends SegmentInfoFormat
plain text segments file format.FOR RECREATIONAL USE ONLY
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classSimpleTextSegmentInfoFormat.BytesRefOutput
-
Field Summary
Fields Modifier and Type Field Description (package private) static BytesRefSI_ATT_KEY(package private) static BytesRefSI_ATT_VALUE(package private) static BytesRefSI_DIAG_KEY(package private) static BytesRefSI_DIAG_VALUE(package private) static BytesRefSI_DOCCOUNTstatic java.lang.StringSI_EXTENSION(package private) static BytesRefSI_FILE(package private) static BytesRefSI_ID(package private) static BytesRefSI_MIN_VERSION(package private) static BytesRefSI_NUM_ATT(package private) static BytesRefSI_NUM_DIAG(package private) static BytesRefSI_NUM_FILES(package private) static BytesRefSI_SORT(package private) static BytesRefSI_SORT_BYTES(package private) static BytesRefSI_SORT_NAME(package private) static BytesRefSI_SORT_TYPE(package private) static BytesRefSI_USECOMPOUND(package private) static BytesRefSI_VERSION
-
Constructor Summary
Constructors Constructor Description SimpleTextSegmentInfoFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentInforead(Directory directory, java.lang.String segmentName, byte[] segmentID, IOContext context)ReadSegmentInfodata from a directory.private java.lang.StringreadString(int offset, BytesRefBuilder scratch)voidwrite(Directory dir, SegmentInfo si, IOContext ioContext)WriteSegmentInfodata.
-
-
-
Field Detail
-
SI_VERSION
static final BytesRef SI_VERSION
-
SI_MIN_VERSION
static final BytesRef SI_MIN_VERSION
-
SI_DOCCOUNT
static final BytesRef SI_DOCCOUNT
-
SI_USECOMPOUND
static final BytesRef SI_USECOMPOUND
-
SI_NUM_DIAG
static final BytesRef SI_NUM_DIAG
-
SI_DIAG_KEY
static final BytesRef SI_DIAG_KEY
-
SI_DIAG_VALUE
static final BytesRef SI_DIAG_VALUE
-
SI_NUM_ATT
static final BytesRef SI_NUM_ATT
-
SI_ATT_KEY
static final BytesRef SI_ATT_KEY
-
SI_ATT_VALUE
static final BytesRef SI_ATT_VALUE
-
SI_NUM_FILES
static final BytesRef SI_NUM_FILES
-
SI_FILE
static final BytesRef SI_FILE
-
SI_ID
static final BytesRef SI_ID
-
SI_SORT
static final BytesRef SI_SORT
-
SI_SORT_TYPE
static final BytesRef SI_SORT_TYPE
-
SI_SORT_NAME
static final BytesRef SI_SORT_NAME
-
SI_SORT_BYTES
static final BytesRef SI_SORT_BYTES
-
SI_EXTENSION
public static final java.lang.String SI_EXTENSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
read
public SegmentInfo read(Directory directory, java.lang.String segmentName, byte[] segmentID, IOContext context) throws java.io.IOException
Description copied from class:SegmentInfoFormatReadSegmentInfodata from a directory.- Specified by:
readin classSegmentInfoFormat- Parameters:
directory- directory to read fromsegmentName- name of the segment to readsegmentID- expected identifier for the segment- Returns:
- infos instance to be populated with data
- Throws:
java.io.IOException- If an I/O error occurs
-
readString
private java.lang.String readString(int offset, BytesRefBuilder scratch)
-
write
public void write(Directory dir, SegmentInfo si, IOContext ioContext) throws java.io.IOException
Description copied from class:SegmentInfoFormatWriteSegmentInfodata. The codec must add its SegmentInfo filename(s) toinfobefore doing i/o.- Specified by:
writein classSegmentInfoFormat- Throws:
java.io.IOException- If an I/O error occurs
-
-