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.lucene50 for an overview
of the index format. |
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.replicator |
Files replication framework
|
org.apache.lucene.search.suggest.document |
Support for document suggestion
|
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 |
---|---|
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 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) . |
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 . |
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 | Method and Description |
---|---|
protected static void |
BaseCompoundFormatTestCase.assertSameSeekBehavior(java.lang.String msg,
IndexInput expected,
IndexInput actual) |
protected static void |
BaseCompoundFormatTestCase.assertSameStreams(java.lang.String msg,
IndexInput expected,
IndexInput test) |
protected static void |
BaseCompoundFormatTestCase.assertSameStreams(java.lang.String msg,
IndexInput expected,
IndexInput actual,
long seekTo) |
Constructor and Description |
---|
IndexInputInputStream(IndexInput in) |
Modifier and Type | Method and Description |
---|---|
static NRTSuggester |
NRTSuggester.load(IndexInput input)
Loads a
NRTSuggester from IndexInput |
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 |
ByteArrayIndexInput
Deprecated.
Will be removed in future Lucene versions. Use byte buffer backed index inputs instead.
|
class |
ByteBuffersIndexInput
|
class |
ChecksumIndexInput
Extension of IndexInput, computing checksum as it goes.
|
class |
MockIndexInputWrapper
Used by MockDirectoryWrapper to create an input stream that
keeps track of when it's been closed.
|
class |
RAMInputStream
Deprecated.
This class uses inefficient synchronization and is discouraged
in favor of
MMapDirectory . It will be removed in future versions
of Lucene. |
Modifier and Type | Field and Description |
---|---|
static java.util.function.BiFunction<java.lang.String,ByteBuffersDataOutput,IndexInput> |
ByteBuffersDirectory.OUTPUT_AS_BYTE_ARRAY |
static java.util.function.BiFunction<java.lang.String,ByteBuffersDataOutput,IndexInput> |
ByteBuffersDirectory.OUTPUT_AS_MANY_BUFFERS |
static java.util.function.BiFunction<java.lang.String,ByteBuffersDataOutput,IndexInput> |
ByteBuffersDirectory.OUTPUT_AS_MANY_BUFFERS_LUCENE |
static java.util.function.BiFunction<java.lang.String,ByteBuffersDataOutput,IndexInput> |
ByteBuffersDirectory.OUTPUT_AS_ONE_BUFFER |
Modifier and Type | Method and Description |
---|---|
IndexInput |
BufferedChecksumIndexInput.clone() |
IndexInput |
ByteBuffersIndexInput.clone() |
IndexInput |
ByteArrayIndexInput.clone()
Deprecated.
|
IndexInput |
IndexInput.clone()
Returns a clone of this stream.
|
IndexInput |
WindowsDirectory.openInput(java.lang.String name,
IOContext context) |
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 |
MockDirectoryWrapper.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 |
ByteBuffersDirectory.openInput(java.lang.String name,
IOContext context) |
abstract IndexInput |
Directory.openInput(java.lang.String name,
IOContext context)
Opens a stream for reading an existing file.
|
IndexInput |
NRTCachingDirectory.openInput(java.lang.String name,
IOContext context) |
IndexInput |
NIOFSDirectory.openInput(java.lang.String name,
IOContext context) |
IndexInput |
RAMDirectory.openInput(java.lang.String name,
IOContext context)
Deprecated.
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 |
FileSwitchDirectory.openInput(java.lang.String name,
IOContext context) |
IndexInput |
FilterDirectory.openInput(java.lang.String name,
IOContext context) |
IndexInput |
MockIndexInputWrapper.slice(java.lang.String sliceDescription,
long offset,
long length) |
IndexInput |
BufferedChecksumIndexInput.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 |
BufferedIndexInput.slice(java.lang.String sliceDescription,
long offset,
long length) |
IndexInput |
RAMInputStream.slice(java.lang.String sliceDescription,
long offset,
long sliceLength)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
MockDirectoryWrapper.removeIndexInput(IndexInput in,
java.lang.String name) |
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
|
MockIndexInputWrapper(MockDirectoryWrapper dir,
java.lang.String name,
IndexInput delegate,
MockIndexInputWrapper parent)
Sole constructor
|
Constructor and Description |
---|
ByteBuffersDirectory(LockFactory factory,
java.util.function.Supplier<ByteBuffersDataOutput> bbOutputSupplier,
java.util.function.BiFunction<java.lang.String,ByteBuffersDataOutput,IndexInput> outputToInput) |
Modifier and Type | Method and Description |
---|---|
void |
PagedBytes.copy(IndexInput in,
long byteCount)
Read this many bytes from in
|
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 |
IntersectState(IndexInput in,
int numDims,
int packedBytesLength,
int packedIndexBytesLength,
int maxPointsInLeafNode,
PointValues.IntersectVisitor visitor,
BKDReader.IndexTree indexVisitor) |
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–2019 The Apache Software Foundation. All rights reserved.