Package | Description |
---|---|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
org.apache.lucene.codecs.bloom |
Codec PostingsFormat for fast access to low-frequency terms
such as primary key fields.
|
org.apache.lucene.codecs.compressing |
StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.
|
org.apache.lucene.codecs.lucene50 |
Components from the Lucene 5.0 index format
See
org.apache.lucene.codecs.lucene50 for an overview
of the index format. |
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.search.suggest |
Support for Autocomplete/Autosuggest
|
org.apache.lucene.search.suggest.analyzing |
Analyzer based autosuggest.
|
org.apache.lucene.search.suggest.fst |
Finite-state based autosuggest.
|
org.apache.lucene.search.suggest.jaspell |
JaSpell-based autosuggest.
|
org.apache.lucene.search.suggest.tst |
Ternary Search Tree based autosuggest.
|
org.apache.lucene.store |
Binary i/o API, used for all index data.
|
org.apache.lucene.util |
Some utility classes.
|
org.apache.lucene.util.fst |
Finite state transducers
|
org.apache.lucene.util.packed |
Packed integer arrays and streams.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
PostingsWriterBase.encodeTerm(long[] longs,
DataOutput out,
FieldInfo fieldInfo,
BlockTermState state,
boolean absolute)
Encode metadata as long[] and byte[].
|
static void |
CodecUtil.verifyAndCopyIndexHeader(IndexInput in,
DataOutput out,
byte[] expectedID)
Expert: verifies the incoming
IndexInput has an index header
and that its segment ID matches the expected one, and then copies
that index header into the provided DataOutput . |
static void |
CodecUtil.writeHeader(DataOutput out,
java.lang.String codec,
int version)
Writes a codec header, which records both a string to
identify the file and a version number.
|
static void |
CodecUtil.writeIndexHeader(DataOutput out,
java.lang.String codec,
int version,
byte[] id,
java.lang.String suffix)
Writes a codec header for an index file, which records both a string to
identify the format of the file, a version number, and data to identify
the file instance (ID and auxiliary suffix such as generation).
|
Modifier and Type | Method and Description |
---|---|
void |
FuzzySet.serialize(DataOutput out)
Serializes the data set to file using the following format:
FuzzySet -->FuzzySetVersion,HashFunctionName,BloomSize,
NumBitSetWords,BitSetWordNumBitSetWords
HashFunctionName -->
String The
name of a ServiceProvider registered HashFunction
FuzzySetVersion --> Uint32 The version number of the FuzzySet class
BloomSize --> Uint32 The modulo value used
to project hashes into the field's Bitset
NumBitSetWords --> Uint32 The number of
longs (as returned from FixedBitSet.getBits() )
BitSetWord --> Long A long from the array
returned by FixedBitSet.getBits()
|
Modifier and Type | Method and Description |
---|---|
abstract void |
Compressor.compress(byte[] bytes,
int off,
int len,
DataOutput out)
Compress bytes into
out . |
Modifier and Type | Method and Description |
---|---|
void |
Lucene50PostingsWriter.encodeTerm(long[] longs,
DataOutput out,
FieldInfo fieldInfo,
BlockTermState _state,
boolean absolute) |
Constructor and Description |
---|
CorruptIndexException(java.lang.String message,
DataOutput output)
Create exception with a message only
|
CorruptIndexException(java.lang.String message,
DataOutput output,
java.lang.Throwable cause)
Create exception with message and root cause.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
Lookup.store(DataOutput output)
Persist the constructed lookup data to a directory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FreeTextSuggester.store(DataOutput output) |
boolean |
AnalyzingInfixSuggester.store(DataOutput in) |
boolean |
AnalyzingSuggester.store(DataOutput output) |
Modifier and Type | Method and Description |
---|---|
boolean |
FSTCompletionLookup.store(DataOutput output) |
boolean |
WFSTCompletionLookup.store(DataOutput output) |
Modifier and Type | Method and Description |
---|---|
boolean |
JaspellLookup.store(DataOutput output)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TSTLookup.store(DataOutput output) |
Modifier and Type | Class and Description |
---|---|
class |
ByteArrayDataOutput
DataOutput backed by a byte array.
|
class |
ByteBuffersDataOutput
A
DataOutput storing data in a list of ByteBuffer s. |
class |
ByteBuffersIndexOutput
An
IndexOutput writing to a ByteBuffersDataOutput . |
class |
CorruptingIndexOutput
Corrupts on bit of a file after close
|
class |
GrowableByteArrayDataOutput
A
DataOutput that can be used to build a byte[]. |
class |
IndexOutput
A
DataOutput for appending data to a file in a Directory . |
class |
MockIndexOutputWrapper
Used by MockRAMDirectory to create an output stream that
will throw an IOException on fake disk full, track max
disk space actually used, and maybe throw random
IOExceptions.
|
class |
OutputStreamDataOutput
A
DataOutput wrapping a plain OutputStream . |
class |
OutputStreamIndexOutput
Implementation class for buffered
IndexOutput that writes to an OutputStream . |
class |
RAMOutputStream
Deprecated.
This class uses inefficient synchronization and is discouraged
in favor of
MMapDirectory . It will be removed in future versions
of Lucene. |
class |
RateLimitedIndexOutput
|
Modifier and Type | Method and Description |
---|---|
void |
ByteBuffersDataOutput.copyTo(DataOutput output)
Copy the current content of this object into another
DataOutput . |
void |
RAMOutputStream.writeTo(DataOutput out)
Deprecated.
Copy the current contents of this buffer to the provided
DataOutput . |
Modifier and Type | Class and Description |
---|---|
class |
PagedBytes.PagedBytesDataOutput |
class |
ThrottledIndexOutput
Intentionally slow IndexOutput for testing.
|
Modifier and Type | Method and Description |
---|---|
void |
FST.save(DataOutput out) |
void |
ByteSequenceOutputs.write(BytesRef prefix,
DataOutput out) |
void |
CharSequenceOutputs.write(CharsRef prefix,
DataOutput out) |
void |
IntSequenceOutputs.write(IntsRef prefix,
DataOutput out) |
void |
PositiveIntOutputs.write(java.lang.Long output,
DataOutput out) |
void |
ListOfOutputs.write(java.lang.Object output,
DataOutput out) |
void |
UpToTwoPositiveIntOutputs.write(java.lang.Object _output,
DataOutput out) |
void |
NoOutputs.write(java.lang.Object prefix,
DataOutput out) |
void |
PairOutputs.write(PairOutputs.Pair<A,B> output,
DataOutput writer) |
abstract void |
Outputs.write(T output,
DataOutput out)
Encode an output value into a
DataOutput . |
void |
ListOfOutputs.writeFinalOutput(java.lang.Object output,
DataOutput out) |
void |
Outputs.writeFinalOutput(T output,
DataOutput out)
Encode an final node output value into a
DataOutput . |
Modifier and Type | Field and Description |
---|---|
protected DataOutput |
PackedInts.Writer.out |
Modifier and Type | Method and Description |
---|---|
static DirectWriter |
DirectWriter.getInstance(DataOutput output,
long numValues,
int bitsPerValue)
Returns an instance suitable for encoding
numValues using bitsPerValue |
static PackedInts.Writer |
PackedInts.getWriter(DataOutput out,
int valueCount,
int bitsPerValue,
float acceptableOverheadRatio)
Create a packed integer array writer for the given output, format, value
count, and number of bits per value.
|
static PackedInts.Writer |
PackedInts.getWriterNoHeader(DataOutput out,
PackedInts.Format format,
int valueCount,
int bitsPerValue,
int mem)
Expert: Create a packed integer array writer for the given output, format,
value count, and number of bits per value.
|
void |
PackedInts.Mutable.save(DataOutput out)
Save this mutable into
out . |
void |
GrowableWriter.save(DataOutput out) |
Constructor and Description |
---|
BlockPackedWriter(DataOutput out,
int blockSize)
Sole constructor.
|
MonotonicBlockPackedWriter(DataOutput out,
int blockSize)
Sole constructor.
|
PackedDataOutput(DataOutput out)
Create a new instance that wraps
out . |
Writer(DataOutput out,
int valueCount,
int bitsPerValue) |
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.