public abstract class CompoundFormat
extends java.lang.Object
Constructor and Description |
---|
CompoundFormat()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract Directory |
getCompoundReader(Directory dir,
SegmentInfo si,
IOContext context)
Returns a Directory view (read-only) for the compound files in this segment
|
abstract void |
write(Directory dir,
SegmentInfo si,
IOContext context)
Packs the provided segment's files into a compound format.
|
public CompoundFormat()
public abstract Directory getCompoundReader(Directory dir, SegmentInfo si, IOContext context) throws java.io.IOException
java.io.IOException
public abstract void write(Directory dir, SegmentInfo si, IOContext context) throws java.io.IOException
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)
.java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.