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 String
Extension 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 String
stripPrefix
(BytesRefBuilder scratch, BytesRef prefix) void
write
(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:CompoundFormat
Returns a Directory view (read-only) for the compound files in this segment- Specified by:
getCompoundReader
in classCompoundFormat
- Throws:
IOException
-
write
Description copied from class:CompoundFormat
Packs the provided segment's files into a compound format. All files referenced by the providedSegmentInfo
must haveCodecUtil.writeIndexHeader(org.apache.lucene.store.DataOutput, java.lang.String, int, byte[], java.lang.String)
andCodecUtil.writeFooter(org.apache.lucene.store.IndexOutput)
.- Specified by:
write
in classCompoundFormat
- Throws:
IOException
-
stripPrefix
-