Package | Description |
---|---|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
org.apache.lucene.codecs.asserting |
Codec for testing that asserts various contracts of the codec apis.
|
org.apache.lucene.codecs.cheapbastard |
Codec that unreasonably tries to use as little RAM as possible.
|
org.apache.lucene.codecs.compressing |
StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.
|
org.apache.lucene.codecs.compressing.dummy |
Dummy CompressingCodec implementation used for testing.
|
org.apache.lucene.codecs.cranky |
Codec for testing that throws random IOExceptions
|
org.apache.lucene.codecs.lucene60 |
Components from the Lucene 6.0 index format.
|
org.apache.lucene.codecs.lucene62 |
Components from the Lucene 6.2 index format
See
org.apache.lucene.codecs.lucene70 for an overview
of the current index format. |
org.apache.lucene.codecs.lucene70 |
Lucene 7.0 file format.
|
org.apache.lucene.codecs.simpletext |
Simpletext Codec: writes human readable postings.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Class and Description |
---|---|
class |
FilterCodec
A codec that forwards all its method calls to another codec.
|
Modifier and Type | Field and Description |
---|---|
protected Codec |
FilterCodec.delegate
The codec to filter.
|
Modifier and Type | Method and Description |
---|---|
static Codec |
Codec.forName(java.lang.String name)
looks up a codec by name
|
static Codec |
Codec.getDefault()
expert: returns the default codec used for newly created
IndexWriterConfig s. |
Modifier and Type | Method and Description |
---|---|
static void |
Codec.setDefault(Codec codec)
expert: sets the default codec used for newly created
IndexWriterConfig s. |
Constructor and Description |
---|
FilterCodec(java.lang.String name,
Codec delegate)
Sole constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
AssertingCodec
Acts like the default codec but with additional asserts.
|
Modifier and Type | Class and Description |
---|---|
class |
CheapBastardCodec
Codec that tries to use as little ram as possible because he spent all his money on beer
|
Modifier and Type | Class and Description |
---|---|
class |
CompressingCodec
A codec that uses
CompressingStoredFieldsFormat for its stored
fields and delegates to the default codec for everything else. |
class |
FastCompressingCodec
CompressionCodec that uses
CompressionMode.FAST |
class |
FastDecompressionCompressingCodec
CompressionCodec that uses
CompressionMode.FAST_DECOMPRESSION |
class |
HighCompressionCompressingCodec
CompressionCodec that uses
CompressionMode.HIGH_COMPRESSION |
Modifier and Type | Class and Description |
---|---|
class |
DummyCompressingCodec
CompressionCodec that does not compress data, useful for testing.
|
Modifier and Type | Class and Description |
---|---|
class |
CrankyCodec
Codec for testing that throws random IOExceptions
|
Constructor and Description |
---|
CrankyCodec(Codec delegate,
java.util.Random random)
Wrap the provided codec with crankiness.
|
Modifier and Type | Class and Description |
---|---|
class |
Lucene60Codec
Deprecated.
Only for 6.0 back compat
|
Modifier and Type | Class and Description |
---|---|
class |
Lucene62Codec
Implements the Lucene 6.2 index format, with configurable per-field postings
and docvalues formats.
|
Modifier and Type | Class and Description |
---|---|
class |
Lucene70Codec
Implements the Lucene 7.0 index format, with configurable per-field postings
and docvalues formats.
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleTextCodec
plain text index format.
|
Modifier and Type | Class and Description |
---|---|
class |
RandomCodec
Codec that assigns per-field random postings formats.
|
Modifier and Type | Field and Description |
---|---|
Codec |
CheckIndex.Status.SegmentInfoStatus.codec
Codec used to read this segment.
|
protected Codec |
LiveIndexWriterConfig.codec
Codec used to write new segments. |
Modifier and Type | Method and Description |
---|---|
protected abstract Codec |
BaseLiveDocsFormatTestCase.getCodec()
Returns the codec to run tests against
|
Codec |
IndexWriterConfig.getCodec() |
Codec |
SegmentInfo.getCodec()
Return
Codec that wrote this segment. |
Codec |
LiveIndexWriterConfig.getCodec()
Returns the current
Codec . |
Modifier and Type | Method and Description |
---|---|
FieldsProducer |
RandomPostingsTester.buildIndex(Codec codec,
Directory dir,
IndexOptions maxAllowed,
boolean allowPayloads,
boolean alwaysTestMax) |
IndexWriterConfig |
IndexWriterConfig.setCodec(Codec codec)
Set the
Codec . |
void |
SegmentInfo.setCodec(Codec codec)
Can only be called once.
|
void |
RandomPostingsTester.testFull(Codec codec,
java.nio.file.Path path,
IndexOptions options,
boolean withPayloads)
Indexes all fields/terms at the specified
IndexOptions, and fully tests at that IndexOptions.
|
Constructor and Description |
---|
SegmentInfo(Directory dir,
Version version,
Version minVersion,
java.lang.String name,
int maxDoc,
boolean isCompoundFile,
Codec codec,
java.util.Map<java.lang.String,java.lang.String> diagnostics,
byte[] id,
java.util.Map<java.lang.String,java.lang.String> attributes,
Sort indexSort)
Construct a new complete SegmentInfo instance from input.
|
Modifier and Type | Method and Description |
---|---|
static Codec |
TestUtil.alwaysDocValuesFormat(DocValuesFormat format)
Return a Codec that can read any of the
default codecs and formats, but always writes in the specified
format.
|
static Codec |
TestUtil.alwaysPostingsFormat(PostingsFormat format)
Return a Codec that can read any of the
default codecs and formats, but always writes in the specified
format.
|
static Codec |
TestUtil.getDefaultCodec()
Returns the actual default codec (e.g.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
TestUtil.getDocValuesFormat(Codec codec,
java.lang.String field) |
static java.lang.String |
TestUtil.getPostingsFormat(Codec codec,
java.lang.String field) |
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.