Module org.apache.lucene.codecs
Class SimpleTextSegmentInfoFormat
java.lang.Object
org.apache.lucene.codecs.SegmentInfoFormat
org.apache.lucene.codecs.simpletext.SimpleTextSegmentInfoFormat
plain text segments file format.
FOR RECREATIONAL USE ONLY
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final BytesRef(package private) static final BytesRef(package private) static final BytesRef(package private) static final BytesRef(package private) static final BytesRefstatic final String(package private) static final BytesRef(package private) static final BytesRef(package private) static final BytesRef(package private) static final BytesRef(package private) static final BytesRef(package private) static final BytesRef(package private) static final BytesRef(package private) static final BytesRef(package private) static final BytesRef(package private) static final BytesRef(package private) static final BytesRef(package private) static final BytesRef(package private) static final BytesRef -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReadSegmentInfodata from a directory.private StringreadString(int offset, BytesRefBuilder scratch) voidwrite(Directory dir, SegmentInfo si, IOContext ioContext) WriteSegmentInfodata.
-
Field Details
-
SI_VERSION
-
SI_MIN_VERSION
-
SI_DOCCOUNT
-
SI_USECOMPOUND
-
SI_HAS_BLOCKS
-
SI_NUM_DIAG
-
SI_DIAG_KEY
-
SI_DIAG_VALUE
-
SI_NUM_ATT
-
SI_ATT_KEY
-
SI_ATT_VALUE
-
SI_NUM_FILES
-
SI_FILE
-
SI_ID
-
SI_SORT
-
SI_SORT_TYPE
-
SI_SORT_NAME
-
SI_SORT_BYTES
-
SI_EXTENSION
- See Also:
-
-
Constructor Details
-
SimpleTextSegmentInfoFormat
public SimpleTextSegmentInfoFormat()
-
-
Method Details
-
read
public SegmentInfo read(Directory directory, String segmentName, byte[] segmentID, IOContext context) throws 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:
IOException- If an I/O error occurs
-
readString
-
write
Description copied from class:SegmentInfoFormatWriteSegmentInfodata. The codec must add its SegmentInfo filename(s) toinfobefore doing i/o.- Specified by:
writein classSegmentInfoFormat- Throws:
IOException- If an I/O error occurs
-