public final class Lucene50CompoundFormat extends CompoundFormat
Files:
Description:
IndexHeader
VInt
UInt64
String
CodecFooter
Notes:
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
DATA_CODEC |
(package private) static java.lang.String |
DATA_EXTENSION
Extension of compound file
|
(package private) static java.lang.String |
ENTRIES_EXTENSION
Extension of compound file entries
|
(package private) static java.lang.String |
ENTRY_CODEC |
(package private) static int |
VERSION_CURRENT |
(package private) static int |
VERSION_START |
Constructor and Description |
---|
Lucene50CompoundFormat()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
Directory |
getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context)
Returns a Directory view (read-only) for the compound files in this segment
|
void |
write(Directory dir,
SegmentInfo si,
IOContext context)
Packs the provided segment's files into a compound format.
|
static final java.lang.String DATA_EXTENSION
static final java.lang.String ENTRIES_EXTENSION
static final java.lang.String DATA_CODEC
static final java.lang.String ENTRY_CODEC
static final int VERSION_START
static final int VERSION_CURRENT
public Directory getCompoundReader(Directory dir, SegmentInfo si, IOContext context) throws java.io.IOException
CompoundFormat
getCompoundReader
in class CompoundFormat
java.io.IOException
public void write(Directory dir, SegmentInfo si, IOContext context) throws java.io.IOException
CompoundFormat
SegmentInfo
must have CodecUtil.writeIndexHeader(org.apache.lucene.store.DataOutput, java.lang.String, int, byte[], java.lang.String)
and CodecUtil.writeFooter(org.apache.lucene.store.IndexOutput)
.write
in class CompoundFormat
java.io.IOException