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.lucene53 for an overview
of the index format. |
org.apache.lucene.codecs.lucene53 |
Components from the Lucene 5.3 index format
See
org.apache.lucene.codecs.lucene54 for an overview
of the index format. |
org.apache.lucene.codecs.lucene54 |
Lucene 5.4 file format.
|
org.apache.lucene.codecs.lucene60 |
Lucene 6.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 | Class and Description |
---|---|
private static class |
MultiLevelSkipListReader.SkipBuffer
used to buffer the top skip levels
|
Modifier and Type | Field and Description |
---|---|
private IndexInput[] |
MultiLevelSkipListReader.skipStream
skipStream for each level.
|
Modifier and Type | Method and Description |
---|---|
IndexInput |
MultiLevelSkipListReader.SkipBuffer.slice(java.lang.String sliceDescription,
long offset,
long length) |
Modifier and Type | Method and Description |
---|---|
static long |
CodecUtil.checksumEntireFile(IndexInput input)
Clones the provided input, reads all bytes from the file, and calls
CodecUtil.checkFooter(org.apache.lucene.store.ChecksumIndexInput) |
abstract void |
PostingsReaderBase.init(IndexInput termsIn,
SegmentReadState state)
Performs any initialization, such as reading and
verifying the header from the provided terms
dictionary
IndexInput . |
static long |
CodecUtil.readCRC(IndexInput input)
Reads CRC32 value as a 64-bit long from the input.
|
static byte[] |
CodecUtil.readFooter(IndexInput in)
Retrieves the full footer from the provided
IndexInput . |
static byte[] |
CodecUtil.readIndexHeader(IndexInput in)
Retrieves the full index header from the provided
IndexInput . |
protected abstract int |
MultiLevelSkipListReader.readSkipData(int level,
IndexInput skipStream)
Subclasses must implement the actual skip data encoding in this method.
|
static long |
CodecUtil.retrieveChecksum(IndexInput in)
Returns (but does not validate) the checksum previously written by
CodecUtil.checkFooter(org.apache.lucene.store.ChecksumIndexInput) . |
private static void |
CodecUtil.validateFooter(IndexInput in) |
Constructor and Description |
---|
MultiLevelSkipListReader(IndexInput skipStream,
int maxSkipLevels,
int skipInterval)
Creates a
MultiLevelSkipListReader , where
skipInterval and skipMultiplier are
the same. |
MultiLevelSkipListReader(IndexInput skipStream,
int maxSkipLevels,
int skipInterval,
int skipMultiplier)
Creates a
MultiLevelSkipListReader . |
SkipBuffer(IndexInput input,
int length) |
Modifier and Type | Field and Description |
---|---|
(package private) IndexInput |
IntersectTermsEnum.in |
(package private) IndexInput |
SegmentTermsEnum.in |
(package private) IndexInput |
BlockTreeTermsReader.termsIn |
Modifier and Type | Method and Description |
---|---|
private static BytesRef |
BlockTreeTermsReader.readBytesRef(IndexInput in) |
private void |
BlockTreeTermsReader.seekDir(IndexInput input,
long dirOffset)
Seek
input to the directory offset. |
Constructor and Description |
---|
FieldReader(BlockTreeTermsReader parent,
FieldInfo fieldInfo,
long numTerms,
BytesRef rootCode,
long sumTotalTermFreq,
long sumDocFreq,
int docCount,
long indexStartFP,
int longsSize,
IndexInput indexIn,
BytesRef minTerm,
BytesRef maxTerm) |
Modifier and Type | Field and Description |
---|---|
private IndexInput |
CompressingStoredFieldsReader.fieldsStream |
(package private) IndexInput |
CompressingTermVectorsReader.vectorsStream |
Modifier and Type | Method and Description |
---|---|
(package private) IndexInput |
CompressingStoredFieldsReader.getFieldsStream() |
(package private) IndexInput |
CompressingTermVectorsReader.getVectorsStream() |
Constructor and Description |
---|
CompressingStoredFieldsIndexReader(IndexInput fieldsIndexIn,
SegmentInfo si) |
Modifier and Type | Field and Description |
---|---|
(package private) IndexInput |
IDVersionSegmentTermsEnum.in |
(package private) IndexInput |
VersionBlockTreeTermsReader.in |
Modifier and Type | Method and Description |
---|---|
void |
IDVersionPostingsReader.init(IndexInput termsIn,
SegmentReadState state) |
private static BytesRef |
VersionBlockTreeTermsReader.readBytesRef(IndexInput in) |
private void |
VersionBlockTreeTermsReader.seekDir(IndexInput input)
Seek
input to the directory offset. |
Constructor and Description |
---|
VersionFieldReader(VersionBlockTreeTermsReader parent,
FieldInfo fieldInfo,
long numTerms,
PairOutputs.Pair<BytesRef,java.lang.Long> rootCode,
long sumTotalTermFreq,
long sumDocFreq,
int docCount,
long indexStartFP,
int longsSize,
IndexInput indexIn,
BytesRef minTerm,
BytesRef maxTerm) |
Modifier and Type | Field and Description |
---|---|
private IndexInput |
Lucene50PostingsReader.docIn |
(package private) IndexInput |
Lucene50PostingsReader.BlockDocsEnum.docIn |
(package private) IndexInput |
Lucene50PostingsReader.BlockPostingsEnum.docIn |
(package private) IndexInput |
Lucene50PostingsReader.EverythingEnum.docIn |
private IndexInput |
Lucene50CompoundReader.handle |
private IndexInput |
Lucene50PostingsReader.payIn |
(package private) IndexInput |
Lucene50PostingsReader.EverythingEnum.payIn |
private IndexInput |
Lucene50PostingsReader.posIn |
(package private) IndexInput |
Lucene50PostingsReader.BlockPostingsEnum.posIn |
(package private) IndexInput |
Lucene50PostingsReader.EverythingEnum.posIn |
(package private) IndexInput |
Lucene50PostingsReader.BlockDocsEnum.startDocIn |
(package private) IndexInput |
Lucene50PostingsReader.BlockPostingsEnum.startDocIn |
(package private) IndexInput |
Lucene50PostingsReader.EverythingEnum.startDocIn |
Modifier and Type | Method and Description |
---|---|
IndexInput |
Lucene50CompoundReader.openInput(java.lang.String name,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
Lucene50PostingsReader.BlockDocsEnum.canReuse(IndexInput docIn,
FieldInfo fieldInfo) |
boolean |
Lucene50PostingsReader.BlockPostingsEnum.canReuse(IndexInput docIn,
FieldInfo fieldInfo) |
boolean |
Lucene50PostingsReader.EverythingEnum.canReuse(IndexInput docIn,
FieldInfo fieldInfo) |
private static DocValuesType |
Lucene50FieldInfosFormat.getDocValuesType(IndexInput input,
byte b) |
private static IndexOptions |
Lucene50FieldInfosFormat.getIndexOptions(IndexInput input,
byte b) |
void |
Lucene50PostingsReader.init(IndexInput termsIn,
SegmentReadState state) |
(package private) void |
ForUtil.readBlock(IndexInput in,
byte[] encoded,
int[] decoded)
Read the next block of data (
For format). |
protected int |
Lucene50SkipReader.readSkipData(int level,
IndexInput skipStream) |
(package private) static void |
Lucene50PostingsReader.readVIntBlock(IndexInput docIn,
int[] docBuffer,
int[] freqBuffer,
int num,
boolean indexHasFreq)
Read values that have been written using variable-length encoding instead of bit-packing.
|
(package private) void |
ForUtil.skipBlock(IndexInput in)
Skip the next block of data.
|
Constructor and Description |
---|
Lucene50SkipReader(IndexInput skipStream,
int maxSkipLevels,
boolean hasPos,
boolean hasOffsets,
boolean hasPayloads) |
Modifier and Type | Field and Description |
---|---|
private IndexInput |
Lucene53NormsProducer.data |
Modifier and Type | Method and Description |
---|---|
private void |
Lucene53NormsProducer.readFields(IndexInput meta,
FieldInfos infos) |
Modifier and Type | Field and Description |
---|---|
private IndexInput |
Lucene54DocValuesProducer.data |
(package private) IndexInput |
Lucene54DocValuesProducer.CompressedBinaryDocValues.data |
private IndexInput |
Lucene54DocValuesProducer.CompressedBinaryDocValues.CompressedBinaryTermsEnum.input |
Modifier and Type | Method and Description |
---|---|
private Lucene54DocValuesProducer.CompressedBinaryDocValues.CompressedBinaryTermsEnum |
Lucene54DocValuesProducer.CompressedBinaryDocValues.getTermsEnum(IndexInput input) |
private Lucene54DocValuesProducer.BinaryEntry |
Lucene54DocValuesProducer.readBinaryEntry(FieldInfo info,
IndexInput meta) |
private int |
Lucene54DocValuesProducer.readFields(IndexInput meta,
FieldInfos infos) |
private Lucene54DocValuesProducer.NumericEntry |
Lucene54DocValuesProducer.readNumericEntry(FieldInfo info,
IndexInput meta) |
private void |
Lucene54DocValuesProducer.readSortedField(FieldInfo info,
IndexInput meta) |
(package private) Lucene54DocValuesProducer.SortedSetEntry |
Lucene54DocValuesProducer.readSortedSetEntry(IndexInput meta) |
private void |
Lucene54DocValuesProducer.readSortedSetFieldWithAddresses(FieldInfo info,
IndexInput meta) |
private void |
Lucene54DocValuesProducer.readSortedSetFieldWithTable(FieldInfo info,
IndexInput meta) |
Constructor and Description |
---|
CompressedBinaryDocValues(Lucene54DocValuesProducer.BinaryEntry bytes,
MonotonicBlockPackedReader addresses,
Lucene54DocValuesProducer.ReverseTermsIndex index,
IndexInput data) |
CompressedBinaryTermsEnum(IndexInput input) |
Modifier and Type | Field and Description |
---|---|
(package private) IndexInput |
Lucene60PointsReader.dataIn |
Modifier and Type | Method and Description |
---|---|
private static DocValuesType |
Lucene60FieldInfosFormat.getDocValuesType(IndexInput input,
byte b) |
private static IndexOptions |
Lucene60FieldInfosFormat.getIndexOptions(IndexInput input,
byte b) |
Modifier and Type | Field and Description |
---|---|
(package private) IndexInput |
PrefixCodedTerms.TermIterator.input |
private IndexInput |
SortingLeafReader.SortingPostingsEnum.postingInput |
Modifier and Type | Class and Description |
---|---|
class |
BufferedChecksumIndexInput
Simple implementation of
ChecksumIndexInput that wraps
another input and delegates calls. |
class |
BufferedIndexInput
Base implementation class for buffered
IndexInput . |
private static class |
BufferedIndexInput.SlicedIndexInput
Implementation of an IndexInput that reads from a portion of a file.
|
class |
ByteArrayIndexInput
DataInput backed by a byte array.
|
(package private) class |
ByteBufferIndexInput
Base IndexInput implementation that uses an array
of ByteBuffers to represent a file.
|
(package private) static class |
ByteBufferIndexInput.MultiBufferImpl
This class adds offset support to ByteBufferIndexInput, which is needed for slices.
|
(package private) static class |
ByteBufferIndexInput.SingleBufferImpl
Optimization of ByteBufferIndexInput for when there is only one buffer
|
class |
ChecksumIndexInput
Extension of IndexInput, computing checksum as it goes.
|
private static class |
NativeUnixDirectory.NativeUnixIndexInput |
(package private) static class |
NIOFSDirectory.NIOFSIndexInput
Reads bytes with
FileChannel.read(ByteBuffer, long) |
(package private) static class |
RAFDirectory.RAFIndexInput
Reads bytes with
RandomAccessFile.seek(long) followed by
RandomAccessFile.read(byte[], int, int) . |
class |
RAMInputStream
A memory-resident
IndexInput implementation. |
(package private) static class |
SimpleFSDirectory.SimpleFSIndexInput
Reads bytes with
SeekableByteChannel.read(ByteBuffer) |
(package private) static class |
WindowsDirectory.WindowsIndexInput |
Modifier and Type | Field and Description |
---|---|
(package private) IndexInput |
BufferedIndexInput.SlicedIndexInput.base |
(package private) IndexInput |
BufferedChecksumIndexInput.main |
Modifier and Type | Method and Description |
---|---|
IndexInput |
BufferedChecksumIndexInput.clone() |
IndexInput |
IndexInput.clone()
Returns a clone of this stream.
|
abstract IndexInput |
Directory.openInput(java.lang.String name,
IOContext context)
Returns a stream reading an existing file.
|
IndexInput |
FileSwitchDirectory.openInput(java.lang.String name,
IOContext context) |
IndexInput |
FilterDirectory.openInput(java.lang.String name,
IOContext context) |
IndexInput |
MMapDirectory.openInput(java.lang.String name,
IOContext context)
Creates an IndexInput for the file with the given name.
|
IndexInput |
NIOFSDirectory.openInput(java.lang.String name,
IOContext context) |
IndexInput |
NRTCachingDirectory.openInput(java.lang.String name,
IOContext context) |
IndexInput |
RAMDirectory.openInput(java.lang.String name,
IOContext context)
Returns a stream reading an existing file.
|
IndexInput |
SimpleFSDirectory.openInput(java.lang.String name,
IOContext context)
Creates an IndexInput for the file with the given name.
|
IndexInput |
NativeUnixDirectory.openInput(java.lang.String name,
IOContext context) |
IndexInput |
RAFDirectory.openInput(java.lang.String name,
IOContext context)
Creates an IndexInput for the file with the given name.
|
IndexInput |
WindowsDirectory.openInput(java.lang.String name,
IOContext context) |
IndexInput |
BufferedChecksumIndexInput.slice(java.lang.String sliceDescription,
long offset,
long length) |
IndexInput |
BufferedIndexInput.slice(java.lang.String sliceDescription,
long offset,
long length) |
IndexInput |
ByteArrayIndexInput.slice(java.lang.String sliceDescription,
long offset,
long length) |
abstract IndexInput |
IndexInput.slice(java.lang.String sliceDescription,
long offset,
long length)
Creates a slice of this index input, with the given description, offset, and length.
|
IndexInput |
NIOFSDirectory.NIOFSIndexInput.slice(java.lang.String sliceDescription,
long offset,
long length) |
IndexInput |
RAMInputStream.slice(java.lang.String sliceDescription,
long offset,
long sliceLength) |
IndexInput |
SimpleFSDirectory.SimpleFSIndexInput.slice(java.lang.String sliceDescription,
long offset,
long length) |
IndexInput |
NativeUnixDirectory.NativeUnixIndexInput.slice(java.lang.String sliceDescription,
long offset,
long length) |
IndexInput |
RAFDirectory.RAFIndexInput.slice(java.lang.String sliceDescription,
long offset,
long length) |
Modifier and Type | Method and Description |
---|---|
static BufferedIndexInput |
BufferedIndexInput.wrap(java.lang.String sliceDescription,
IndexInput other,
long offset,
long length)
Wraps a portion of another IndexInput with buffering.
|
Constructor and Description |
---|
BufferedChecksumIndexInput(IndexInput main)
Creates a new BufferedChecksumIndexInput
|
SlicedIndexInput(java.lang.String sliceDescription,
IndexInput base,
long offset,
long length) |
Modifier and Type | Method and Description |
---|---|
void |
PagedBytes.copy(IndexInput in,
long byteCount)
Read this many bytes from in
|
Modifier and Type | Field and Description |
---|---|
(package private) IndexInput |
BKDReader.in |
(package private) IndexInput |
BKDReader.IntersectState.in |
(package private) IndexInput |
OfflinePointReader.in |
Modifier and Type | Method and Description |
---|---|
protected int |
BKDReader.readDocIDs(IndexInput in,
long blockFP,
int[] docIDs) |
protected void |
BKDReader.visitDocIDs(IndexInput in,
long blockFP,
PointValues.IntersectVisitor visitor) |
protected void |
BKDReader.visitDocValues(int[] commonPrefixLengths,
byte[] scratchPackedValue,
IndexInput in,
int[] docIDs,
int count,
PointValues.IntersectVisitor visitor) |
Constructor and Description |
---|
BKDReader(IndexInput in)
Caller must pre-seek the provided
IndexInput to the index location that BKDWriter.finish(org.apache.lucene.store.IndexOutput) returned |
BKDReader(IndexInput in,
int numDims,
int maxPointsInLeafNode,
int bytesPerDim,
long[] leafBlockFPs,
byte[] splitPackedValues,
byte[] minPackedValue,
byte[] maxPackedValue,
long pointCount,
int docCount)
Called by consumers that have their own on-disk format for the index (e.g.
|
IntersectState(IndexInput in,
int numDims,
int packedBytesLength,
int maxPointsInLeafNode,
PointValues.IntersectVisitor visitor) |
Modifier and Type | Field and Description |
---|---|
private IndexInput |
DirectPacked64SingleBlockReader.in |
(package private) IndexInput |
DirectPackedReader.in |
Modifier and Type | Method and Description |
---|---|
static PackedInts.Reader |
PackedInts.getDirectReader(IndexInput in)
Construct a direct
PackedInts.Reader from an IndexInput . |
static PackedInts.Reader |
PackedInts.getDirectReaderNoHeader(IndexInput in,
PackedInts.Format format,
int version,
int valueCount,
int bitsPerValue)
Expert: Construct a direct
PackedInts.Reader from a stream without reading
metadata at the beginning of the stream. |
static DirectMonotonicReader.Meta |
DirectMonotonicReader.loadMeta(IndexInput metaIn,
long numValues,
int blockShift)
Load metadata from the given
IndexInput . |
static MonotonicBlockPackedReader |
MonotonicBlockPackedReader.of(IndexInput in,
int packedIntsVersion,
int blockSize,
long valueCount,
boolean direct)
Sole constructor.
|
Constructor and Description |
---|
BlockPackedReader(IndexInput in,
int packedIntsVersion,
int blockSize,
long valueCount,
boolean direct)
Sole constructor.
|
DirectPacked64SingleBlockReader(int bitsPerValue,
int valueCount,
IndexInput in) |
DirectPackedReader(int bitsPerValue,
int valueCount,
IndexInput in) |
MonotonicBlockPackedReader(IndexInput in,
int packedIntsVersion,
int blockSize,
long valueCount,
boolean direct) |