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 BytesRef
static 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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReadSegmentInfo
data from a directory.private String
readString
(int offset, BytesRefBuilder scratch) void
write
(Directory dir, SegmentInfo si, IOContext ioContext) WriteSegmentInfo
data.
-
Field Details
-
SI_VERSION
-
SI_MIN_VERSION
-
SI_DOCCOUNT
-
SI_USECOMPOUND
-
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:SegmentInfoFormat
ReadSegmentInfo
data from a directory.- Specified by:
read
in 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:SegmentInfoFormat
WriteSegmentInfo
data. The codec must add its SegmentInfo filename(s) toinfo
before doing i/o.- Specified by:
write
in classSegmentInfoFormat
- Throws:
IOException
- If an I/O error occurs
-