Package | Description |
---|---|
org.apache.lucene.codecs |
Codecs for testing (simulate old disk formats, wacky theoretical use cases, etc)
|
org.apache.lucene.codecs.appending |
Codec for on append-only outputs, such as plain output streams and append-only filesystems.
|
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 |
Support for testing
CompressingStoredFieldsFormat . |
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.lucene3x |
Support for generating test indexes in the Lucene 3.x index format.
|
org.apache.lucene.codecs.lucene40 |
Support for testing
Lucene40PostingsFormat . |
org.apache.lucene.codecs.lucene41 |
Support for testing
Lucene41Codec . |
org.apache.lucene.codecs.lucene410 |
Lucene 4.10 file format.
|
org.apache.lucene.codecs.lucene42 |
Support for testing
Lucene42Codec . |
org.apache.lucene.codecs.lucene45 |
Support for testing
Lucene45Codec . |
org.apache.lucene.codecs.lucene46 |
Support for testing
Lucene46Codec . |
org.apache.lucene.codecs.lucene49 |
Support for testing
Lucene49Codec . |
org.apache.lucene.codecs.simpletext |
Simpletext Codec: writes human readable postings.
|
org.apache.lucene.index |
Misc index tools and index support.
|
org.apache.lucene.util |
General test support.
|
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(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(String name,
Codec delegate)
Sole constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
AppendingCodec
Deprecated.
This codec is read-only: as the functionality has been folded
into the default codec. Its only for convenience to read old segments.
|
Modifier and Type | Class and Description |
---|---|
class |
AssertingCodec
Acts like
Lucene410Codec 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 Lucene410Codec 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,
Random random)
Wrap the provided codec with crankiness.
|
Modifier and Type | Class and Description |
---|---|
class |
Lucene3xCodec
Deprecated.
Only for reading existing 3.x indexes
|
class |
PreFlexRWCodec
Writes 3.x-like indexes (not perfect emulation yet) for testing only!
|
Modifier and Type | Class and Description |
---|---|
class |
Lucene40Codec
Deprecated.
Only for reading old 4.0 segments
|
class |
Lucene40RWCodec
Read-write version of Lucene40Codec for testing
|
Modifier and Type | Class and Description |
---|---|
class |
Lucene41Codec
Deprecated.
Only for reading old 4.0 segments
|
class |
Lucene41RWCodec
Read-write version of
Lucene41Codec for testing. |
Modifier and Type | Class and Description |
---|---|
class |
Lucene410Codec
Implements the Lucene 4.10 index format, with configurable per-field postings
and docvalues formats.
|
Modifier and Type | Class and Description |
---|---|
class |
Lucene42Codec
Deprecated.
Only for reading old 4.2 segments
|
class |
Lucene42RWCodec
Read-write version of
Lucene42Codec for testing. |
Modifier and Type | Class and Description |
---|---|
class |
Lucene45Codec
Deprecated.
Only for reading old 4.3-4.5 segments
|
class |
Lucene45RWCodec
Read-write version of
Lucene45Codec for testing. |
Modifier and Type | Class and Description |
---|---|
class |
Lucene46Codec
Deprecated.
Only for reading old 4.6-4.8 segments
|
class |
Lucene46RWCodec
Read-write version of
Lucene46Codec for testing. |
Modifier and Type | Class and Description |
---|---|
class |
Lucene49Codec
Implements the Lucene 4.9 index format, with configurable per-field postings
and docvalues formats.
|
class |
Lucene49RWCodec
Read-write version of
Lucene49Codec for testing. |
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 |
---|---|
protected Codec |
LiveIndexWriterConfig.codec
Codec used to write new segments. |
Codec |
CheckIndex.Status.SegmentInfoStatus.codec
Codec used to read this segment.
|
Modifier and Type | Method and Description |
---|---|
Codec |
LiveIndexWriterConfig.getCodec()
Returns the current
Codec . |
Codec |
IndexWriterConfig.getCodec() |
Codec |
SegmentInfo.getCodec()
Return
Codec that wrote this segment. |
Modifier and Type | Method and Description |
---|---|
IndexWriterConfig |
IndexWriterConfig.setCodec(Codec codec)
Set the
Codec . |
void |
SegmentInfo.setCodec(Codec codec)
Can only be called once.
|
Constructor and Description |
---|
SegmentInfo(Directory dir,
Version version,
String name,
int docCount,
boolean isCompoundFile,
Codec codec,
Map<String,String> diagnostics)
Construct a new complete SegmentInfo instance from input.
|
SegmentInfo(Directory dir,
Version version,
String name,
int docCount,
boolean isCompoundFile,
Codec codec,
Map<String,String> diagnostics,
Map<String,String> attributes)
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.
|
Modifier and Type | Method and Description |
---|---|
static String |
TestUtil.getDocValuesFormat(Codec codec,
String field) |
static String |
TestUtil.getPostingsFormat(Codec codec,
String field) |
Copyright © 2000–2017 The Apache Software Foundation. All rights reserved.