Package | Description |
---|---|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
org.apache.lucene.codecs.blocktree |
BlockTree terms dictionary.
|
org.apache.lucene.codecs.compressing |
StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.
|
org.apache.lucene.codecs.idversion |
A primary-key postings format that associates a version (long) with each term and
can provide fail-fast lookups by ID and version.
|
org.apache.lucene.codecs.lucene50 |
Components from the Lucene 5.0 index format
See
org.apache.lucene.codecs.lucene80 for an overview
of the index format. |
org.apache.lucene.codecs.lucene60 |
Components from the Lucene 6.0 index format.
|
org.apache.lucene.codecs.lucene70 |
Components from the Lucene 7.0 index format.
|
org.apache.lucene.codecs.lucene80 |
Lucene 8.0 file format.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.store |
Binary i/o API, used for all index data.
|
org.apache.lucene.util |
Some utility classes.
|
org.apache.lucene.util.bkd |
Block KD-tree, implementing the generic spatial data structure described in
this paper.
|
org.apache.lucene.util.packed |
Packed integer arrays and streams.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
PostingsWriterBase.init(IndexOutput termsOut,
SegmentWriteState state)
Called once after startup, before any terms have been
added.
|
(package private) static void |
CodecUtil.writeCRC(IndexOutput output)
Writes CRC32 value as a 64-bit long to the output.
|
static void |
CodecUtil.writeFooter(IndexOutput out)
Writes a codec footer, which records both a checksum
algorithm ID and a checksum.
|
long |
MultiLevelSkipListWriter.writeSkip(IndexOutput output)
Writes the buffered skip lists to the given output.
|
protected abstract void |
MultiLevelSkipListWriter.writeSkipData(int level,
IndexOutput skipBuffer)
Subclasses must implement the actual skip data encoding in this method.
|
Modifier and Type | Field and Description |
---|---|
private IndexOutput |
BlockTreeTermsWriter.indexOut |
private IndexOutput |
BlockTreeTermsWriter.termsOut |
Modifier and Type | Method and Description |
---|---|
private static void |
BlockTreeTermsWriter.writeBytesRef(IndexOutput out,
BytesRef bytes) |
private void |
BlockTreeTermsWriter.writeIndexTrailer(IndexOutput indexOut,
long dirStart)
Writes the index file trailer.
|
private void |
BlockTreeTermsWriter.writeTrailer(IndexOutput out,
long dirStart)
Writes the terms file trailer.
|
Modifier and Type | Field and Description |
---|---|
(package private) IndexOutput |
CompressingStoredFieldsIndexWriter.fieldsIndexOut |
private IndexOutput |
CompressingStoredFieldsWriter.fieldsStream |
private IndexOutput |
CompressingTermVectorsWriter.vectorsStream |
Constructor and Description |
---|
CompressingStoredFieldsIndexWriter(IndexOutput indexOutput,
int blockSize) |
Modifier and Type | Field and Description |
---|---|
private IndexOutput |
VersionBlockTreeTermsWriter.indexOut |
private IndexOutput |
VersionBlockTreeTermsWriter.out |
Modifier and Type | Method and Description |
---|---|
void |
IDVersionPostingsWriter.init(IndexOutput termsOut,
SegmentWriteState state) |
private static void |
VersionBlockTreeTermsWriter.writeBytesRef(IndexOutput out,
BytesRef bytes) |
private void |
VersionBlockTreeTermsWriter.writeIndexTrailer(IndexOutput indexOut,
long dirStart)
Writes the index file trailer.
|
private void |
VersionBlockTreeTermsWriter.writeTrailer(IndexOutput out,
long dirStart)
Writes the terms file trailer.
|
Modifier and Type | Field and Description |
---|---|
private IndexOutput |
Lucene50SkipWriter.docOut |
(package private) IndexOutput |
Lucene50PostingsWriter.docOut |
private IndexOutput |
Lucene50SkipWriter.payOut |
(package private) IndexOutput |
Lucene50PostingsWriter.payOut |
private IndexOutput |
Lucene50SkipWriter.posOut |
(package private) IndexOutput |
Lucene50PostingsWriter.posOut |
Modifier and Type | Method and Description |
---|---|
IndexOutput |
Lucene50CompoundReader.createOutput(java.lang.String name,
IOContext context) |
IndexOutput |
Lucene50CompoundReader.createTempOutput(java.lang.String prefix,
java.lang.String suffix,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
void |
Lucene50PostingsWriter.init(IndexOutput termsOut,
SegmentWriteState state) |
(package private) void |
ForUtil.writeBlock(int[] data,
byte[] encoded,
IndexOutput out)
Write a block of data (
For format). |
(package private) static void |
Lucene50SkipWriter.writeImpacts(CompetitiveImpactAccumulator acc,
IndexOutput out) |
protected void |
Lucene50SkipWriter.writeSkipData(int level,
IndexOutput skipBuffer) |
Constructor and Description |
---|
Lucene50SkipWriter(int maxSkipLevels,
int blockSize,
int docCount,
IndexOutput docOut,
IndexOutput posOut,
IndexOutput payOut) |
Modifier and Type | Field and Description |
---|---|
protected IndexOutput |
Lucene60PointsWriter.dataOut
Output used to write the BKD tree data file
|
Modifier and Type | Field and Description |
---|---|
(package private) IndexOutput |
Lucene70NormsConsumer.data |
(package private) IndexOutput |
Lucene70DocValuesConsumer.data |
(package private) IndexOutput |
Lucene70NormsConsumer.meta |
(package private) IndexOutput |
Lucene70DocValuesConsumer.meta |
Modifier and Type | Method and Description |
---|---|
private static void |
IndexedDISI.flush(int block,
FixedBitSet buffer,
int cardinality,
IndexOutput out) |
(package private) static void |
IndexedDISI.writeBitSet(DocIdSetIterator it,
IndexOutput out) |
private void |
Lucene70NormsConsumer.writeValues(NumericDocValues values,
int numBytesPerValue,
IndexOutput out) |
Modifier and Type | Field and Description |
---|---|
(package private) IndexOutput |
Lucene80DocValuesConsumer.data |
(package private) IndexOutput |
Lucene80NormsConsumer.data |
(package private) IndexOutput |
Lucene80DocValuesConsumer.meta |
(package private) IndexOutput |
Lucene80NormsConsumer.meta |
Modifier and Type | Method and Description |
---|---|
private static void |
IndexedDISI.flush(int block,
FixedBitSet buffer,
int cardinality,
byte denseRankPower,
IndexOutput out) |
private static short |
IndexedDISI.flushBlockJumps(int[] jumps,
int blockCount,
IndexOutput out,
long origo) |
(package private) static short |
IndexedDISI.writeBitSet(DocIdSetIterator it,
IndexOutput out)
Writes the docIDs from it to out, in logical blocks, one for each 65536 docIDs in monotonically increasing
gap-less order.
|
(package private) static short |
IndexedDISI.writeBitSet(DocIdSetIterator it,
IndexOutput out,
byte denseRankPower)
Writes the docIDs from it to out, in logical blocks, one for each 65536 docIDs in monotonically
increasing gap-less order.
|
private void |
Lucene80NormsConsumer.writeValues(NumericDocValues values,
int numBytesPerValue,
IndexOutput out) |
Modifier and Type | Method and Description |
---|---|
IndexOutput |
TrackingTmpOutputDirectoryWrapper.createOutput(java.lang.String name,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
private void |
SortingLeafReader.SortingPostingsEnum.addPositions(PostingsEnum in,
IndexOutput out) |
void |
SegmentInfos.write(Directory directory,
IndexOutput out)
Write ourselves to the provided
IndexOutput |
Modifier and Type | Class and Description |
---|---|
class |
ByteBuffersIndexOutput
An
IndexOutput writing to a ByteBuffersDataOutput . |
(package private) class |
FSDirectory.FSIndexOutput |
private static class |
NativeUnixDirectory.NativeUnixIndexOutput |
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 | Field and Description |
---|---|
private IndexOutput |
RateLimitedIndexOutput.delegate |
Modifier and Type | Method and Description |
---|---|
(package private) IndexOutput |
ByteBuffersDirectory.FileEntry.createOutput(java.util.function.BiFunction<java.lang.String,ByteBuffersDataOutput,IndexInput> outputToInput) |
IndexOutput |
ByteBuffersDirectory.createOutput(java.lang.String name,
IOContext context) |
IndexOutput |
FSDirectory.createOutput(java.lang.String name,
IOContext context) |
IndexOutput |
RAMDirectory.createOutput(java.lang.String name,
IOContext context)
Deprecated.
|
abstract IndexOutput |
Directory.createOutput(java.lang.String name,
IOContext context)
Creates a new, empty file in the directory and returns an
IndexOutput
instance for appending data to this file. |
IndexOutput |
LockValidatingDirectoryWrapper.createOutput(java.lang.String name,
IOContext context) |
IndexOutput |
TrackingDirectoryWrapper.createOutput(java.lang.String name,
IOContext context) |
IndexOutput |
FileSwitchDirectory.createOutput(java.lang.String name,
IOContext context) |
IndexOutput |
FilterDirectory.createOutput(java.lang.String name,
IOContext context) |
IndexOutput |
NRTCachingDirectory.createOutput(java.lang.String name,
IOContext context) |
IndexOutput |
NativeUnixDirectory.createOutput(java.lang.String name,
IOContext context) |
IndexOutput |
ByteBuffersDirectory.createTempOutput(java.lang.String prefix,
java.lang.String suffix,
IOContext context) |
IndexOutput |
FSDirectory.createTempOutput(java.lang.String prefix,
java.lang.String suffix,
IOContext context) |
IndexOutput |
RAMDirectory.createTempOutput(java.lang.String prefix,
java.lang.String suffix,
IOContext context)
Deprecated.
|
abstract IndexOutput |
Directory.createTempOutput(java.lang.String prefix,
java.lang.String suffix,
IOContext context)
Creates a new, empty, temporary file in the directory and returns an
IndexOutput
instance for appending data to this file. |
IndexOutput |
TrackingDirectoryWrapper.createTempOutput(java.lang.String prefix,
java.lang.String suffix,
IOContext context) |
IndexOutput |
FileSwitchDirectory.createTempOutput(java.lang.String prefix,
java.lang.String suffix,
IOContext context) |
IndexOutput |
FilterDirectory.createTempOutput(java.lang.String prefix,
java.lang.String suffix,
IOContext context) |
IndexOutput |
NRTCachingDirectory.createTempOutput(java.lang.String prefix,
java.lang.String suffix,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
protected int |
BufferedIndexInput.flushBuffer(IndexOutput out,
long numBytes)
Flushes the in-memory buffer to the given output, copying at most
numBytes . |
Constructor and Description |
---|
RateLimitedIndexOutput(RateLimiter rateLimiter,
IndexOutput delegate) |
Modifier and Type | Field and Description |
---|---|
protected IndexOutput |
OfflineSorter.ByteSequencesWriter.out |
Modifier and Type | Method and Description |
---|---|
protected OfflineSorter.ByteSequencesWriter |
OfflineSorter.getWriter(IndexOutput out,
long itemCount)
Subclasses can override to change how byte sequences are written to disk.
|
Constructor and Description |
---|
ByteSequencesWriter(IndexOutput out)
Constructs a ByteSequencesWriter to the provided DataOutput
|
Modifier and Type | Field and Description |
---|---|
(package private) IndexOutput |
BKDWriter.OneDimensionBKDWriter.out |
IndexOutput |
OfflinePointWriter.out |
private IndexOutput |
BKDWriter.tempInput |
Modifier and Type | Method and Description |
---|---|
private void |
BKDWriter.build(int nodeID,
int leafNodeOffset,
BKDRadixSelector.PathSlice points,
IndexOutput out,
BKDRadixSelector radixSelector,
byte[] minPackedValue,
byte[] maxPackedValue,
int[] parentSplits,
byte[] splitPackedValues,
long[] leafBlockFPs)
The point writer contains the data that is going to be splitted using radix selection.
|
private void |
BKDWriter.build(int nodeID,
int leafNodeOffset,
MutablePointValues reader,
int from,
int to,
IndexOutput out,
byte[] minPackedValue,
byte[] maxPackedValue,
int[] parentSplits,
byte[] splitPackedValues,
long[] leafBlockFPs,
int[] spareDocIds) |
long |
BKDWriter.finish(IndexOutput out)
Writes the BKD tree to the provided
IndexOutput and returns the file offset where index was written. |
long |
BKDWriter.merge(IndexOutput out,
java.util.List<MergeState.DocMap> docMaps,
java.util.List<BKDReader> readers)
More efficient bulk-add for incoming
BKDReader s. |
long |
BKDWriter.writeField(IndexOutput out,
java.lang.String fieldName,
MutablePointValues reader)
Write a field from a
MutablePointValues . |
private long |
BKDWriter.writeField1Dim(IndexOutput out,
java.lang.String fieldName,
MutablePointValues reader) |
private long |
BKDWriter.writeFieldNDims(IndexOutput out,
java.lang.String fieldName,
MutablePointValues values) |
private void |
BKDWriter.writeIndex(IndexOutput out,
int countPerLeaf,
int numLeaves,
byte[] packedIndex) |
private void |
BKDWriter.writeIndex(IndexOutput out,
int countPerLeaf,
long[] leafBlockFPs,
byte[] splitPackedValues) |
Constructor and Description |
---|
OneDimensionBKDWriter(IndexOutput out) |
Modifier and Type | Field and Description |
---|---|
(package private) IndexOutput |
DirectMonotonicWriter.data |
(package private) IndexOutput |
DirectMonotonicWriter.meta |
Modifier and Type | Method and Description |
---|---|
static DirectMonotonicWriter |
DirectMonotonicWriter.getInstance(IndexOutput metaOut,
IndexOutput dataOut,
long numValues,
int blockShift)
Returns an instance suitable for encoding
numValues into monotonic
blocks of 2blockShift values. |
Constructor and Description |
---|
DirectMonotonicWriter(IndexOutput metaOut,
IndexOutput dataOut,
long numValues,
int blockShift) |