public abstract class CompressingCodec extends FilterCodec
CompressingStoredFieldsFormat
for its stored
fields and delegates to the default codec for everything else.delegate
Constructor and Description |
---|
CompressingCodec(String name,
CompressionMode compressionMode,
int chunkSize,
int maxDocsPerChunk,
int blockSize)
Creates a compressing codec with an empty segment suffix
|
CompressingCodec(String name,
String segmentSuffix,
CompressionMode compressionMode,
int chunkSize,
int maxDocsPerChunk,
int blockShift)
Creates a compressing codec with a given segment suffix
|
Modifier and Type | Method and Description |
---|---|
static CompressingCodec |
randomInstance(Random random)
Creates a random
CompressingCodec that is using an empty segment
suffix |
static CompressingCodec |
randomInstance(Random random,
boolean withSegmentSuffix)
Creates a random
CompressingCodec that is using a segment suffix |
static CompressingCodec |
randomInstance(Random random,
int chunkSize,
int maxDocsPerChunk,
boolean withSegmentSuffix,
int blockShift)
Create a random instance.
|
static CompressingCodec |
reasonableInstance(Random random)
Creates a random
CompressingCodec with more reasonable parameters for big tests. |
StoredFieldsFormat |
storedFieldsFormat() |
TermVectorsFormat |
termVectorsFormat() |
String |
toString() |
compoundFormat, docValuesFormat, fieldInfosFormat, liveDocsFormat, normsFormat, pointsFormat, postingsFormat, segmentInfoFormat
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault
public CompressingCodec(String name, String segmentSuffix, CompressionMode compressionMode, int chunkSize, int maxDocsPerChunk, int blockShift)
public CompressingCodec(String name, CompressionMode compressionMode, int chunkSize, int maxDocsPerChunk, int blockSize)
public static CompressingCodec randomInstance(Random random, int chunkSize, int maxDocsPerChunk, boolean withSegmentSuffix, int blockShift)
public static CompressingCodec randomInstance(Random random)
CompressingCodec
that is using an empty segment
suffixpublic static CompressingCodec reasonableInstance(Random random)
CompressingCodec
with more reasonable parameters for big tests.public static CompressingCodec randomInstance(Random random, boolean withSegmentSuffix)
CompressingCodec
that is using a segment suffixpublic StoredFieldsFormat storedFieldsFormat()
storedFieldsFormat
in class FilterCodec
public TermVectorsFormat termVectorsFormat()
termVectorsFormat
in class FilterCodec
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.