Module org.apache.lucene.codecs
Class SimpleTextCompoundFormat
java.lang.Object
org.apache.lucene.codecs.CompoundFormat
org.apache.lucene.codecs.simpletext.SimpleTextCompoundFormat
plain text compound format.
FOR RECREATIONAL USE ONLY
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final StringExtension of compound file(package private) static final BytesRef(package private) 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCompoundReader(Directory dir, SegmentInfo si, IOContext context) Returns a Directory view (read-only) for the compound files in this segmentprivate StringstripPrefix(BytesRefBuilder scratch, BytesRef prefix) voidwrite(Directory dir, SegmentInfo si, IOContext context) Packs the provided segment's files into a compound format.
-
Field Details
-
DATA_EXTENSION
Extension of compound file- See Also:
-
HEADER
-
TABLE
-
TABLENAME
-
TABLESTART
-
TABLEEND
-
TABLEPOS
-
OFFSETPATTERN
-
-
Constructor Details
-
SimpleTextCompoundFormat
public SimpleTextCompoundFormat()Sole constructor.
-
-
Method Details
-
getCompoundReader
public CompoundDirectory getCompoundReader(Directory dir, SegmentInfo si, IOContext context) throws IOException Description copied from class:CompoundFormatReturns a Directory view (read-only) for the compound files in this segment- Specified by:
getCompoundReaderin classCompoundFormat- Throws:
IOException
-
write
Description copied from class:CompoundFormatPacks the provided segment's files into a compound format. All files referenced by the providedSegmentInfomust haveCodecUtil.writeIndexHeader(org.apache.lucene.store.DataOutput, java.lang.String, int, byte[], java.lang.String)andCodecUtil.writeFooter(org.apache.lucene.store.IndexOutput).- Specified by:
writein classCompoundFormat- Throws:
IOException
-
stripPrefix
-