Package | Description |
---|---|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
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.store |
Binary i/o API, used for all index data.
|
org.apache.lucene.util |
Some utility classes.
|
org.apache.lucene.util.packed |
Packed integer arrays and streams.
|
Modifier and Type | Method and Description |
---|---|
static void |
CodecUtil.checkEOF(IndexInput in)
Deprecated.
Use
CodecUtil.checkFooter(org.apache.lucene.store.ChecksumIndexInput) instead, this should only used for files without checksums |
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.
|
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) . |
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 . |
Modifier and Type | Method and Description |
---|---|
void |
Lucene50PostingsReader.init(IndexInput termsIn,
SegmentReadState state) |
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 . |
class |
ChecksumIndexInput
Extension of IndexInput, computing checksum as it goes.
|
class |
RAMInputStream
A memory-resident
IndexInput implementation. |
Modifier and Type | Method and Description |
---|---|
IndexInput |
IndexInput.clone()
Returns a clone of this stream.
|
IndexInput |
BufferedChecksumIndexInput.clone() |
IndexInput |
FileSwitchDirectory.openInput(String name,
IOContext context) |
IndexInput |
SimpleFSDirectory.openInput(String name,
IOContext context)
Creates an IndexInput for the file with the given name.
|
abstract IndexInput |
Directory.openInput(String name,
IOContext context)
Returns a stream reading an existing file.
|
IndexInput |
FilterDirectory.openInput(String name,
IOContext context) |
IndexInput |
RAMDirectory.openInput(String name,
IOContext context)
Returns a stream reading an existing file.
|
IndexInput |
NIOFSDirectory.openInput(String name,
IOContext context)
Creates an IndexInput for the file with the given name.
|
IndexInput |
MMapDirectory.openInput(String name,
IOContext context)
Creates an IndexInput for the file with the given name.
|
IndexInput |
NRTCachingDirectory.openInput(String name,
IOContext context) |
abstract IndexInput |
IndexInput.slice(String sliceDescription,
long offset,
long length)
Creates a slice of this index input, with the given description, offset, and length.
|
IndexInput |
BufferedChecksumIndexInput.slice(String sliceDescription,
long offset,
long length) |
IndexInput |
RAMInputStream.slice(String sliceDescription,
long offset,
long sliceLength) |
IndexInput |
BufferedIndexInput.slice(String sliceDescription,
long offset,
long length) |
Modifier and Type | Method and Description |
---|---|
static BufferedIndexInput |
BufferedIndexInput.wrap(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
|
Modifier and Type | Method and Description |
---|---|
void |
PagedBytes.copy(IndexInput in,
long byteCount)
Read this many bytes from 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.
|
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.