Package | Description |
---|---|
org.apache.lucene.codecs |
Codecs for testing (simulate old disk formats, wacky theoretical use cases, etc)
|
org.apache.lucene.codecs.appending |
Codec for on append-only outputs, such as plain output streams and append-only filesystems.
|
org.apache.lucene.codecs.blocktree |
BlockTree terms dictionary.
|
org.apache.lucene.codecs.intblock |
Intblock: base support for fixed or variable length block integer encoders
|
org.apache.lucene.codecs.lucene3x |
Support for generating test indexes in the Lucene 3.x index format.
|
org.apache.lucene.codecs.lucene40 |
Support for testing
Lucene40PostingsFormat . |
org.apache.lucene.codecs.lucene41 |
Support for testing
Lucene41Codec . |
org.apache.lucene.codecs.mocksep |
Very simple implementations of
org.apache.lucene.codecs.sep for testing. |
org.apache.lucene.codecs.pulsing |
Pulsing Codec: inlines low frequency terms' postings into terms dictionary.
|
org.apache.lucene.codecs.sep |
Sep: base support for separate files (doc,frq,pos,skp,pyl)
|
org.apache.lucene.replicator |
Files replication framework
|
org.apache.lucene.store |
Misc Directory implementations.
|
org.apache.lucene.util |
General test support.
|
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)
Performs any initialization, such as reading and
verifying the header from the provided terms
dictionary
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) . |
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 |
---|---|
protected int |
AppendingTermsReader.readHeader(IndexInput input)
Deprecated.
|
protected int |
AppendingTermsReader.readIndexHeader(IndexInput input)
Deprecated.
|
protected void |
AppendingTermsReader.seekDir(IndexInput input,
long dirOffset)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected int |
BlockTreeTermsReader.readHeader(IndexInput input)
Reads terms file header.
|
protected int |
BlockTreeTermsReader.readIndexHeader(IndexInput input)
Reads index file header.
|
protected void |
BlockTreeTermsReader.seekDir(IndexInput input,
long dirOffset)
Seek
input to the directory offset. |
Modifier and Type | Field and Description |
---|---|
protected IndexInput |
VariableIntBlockIndexInput.in |
Modifier and Type | Method and Description |
---|---|
protected abstract VariableIntBlockIndexInput.BlockReader |
VariableIntBlockIndexInput.getBlockReader(IndexInput in,
int[] buffer) |
protected abstract FixedIntBlockIndexInput.BlockReader |
FixedIntBlockIndexInput.getBlockReader(IndexInput in,
int[] buffer) |
Constructor and Description |
---|
FixedIntBlockIndexInput(IndexInput in) |
VariableIntBlockIndexInput(IndexInput in) |
Modifier and Type | Method and Description |
---|---|
static void |
Lucene3xSegmentInfoReader.readLegacyInfos(SegmentInfos infos,
Directory directory,
IndexInput input,
int format)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
IndexInput |
Lucene40StoredFieldsReader.rawDocs(int[] lengths,
int startDocID,
int numDocs)
Returns the length in bytes of each raw document in a
contiguous range of length numDocs starting with
startDocID.
|
Modifier and Type | Method and Description |
---|---|
void |
Lucene40StoredFieldsWriter.addRawDocuments(IndexInput stream,
int[] lengths,
int numDocs)
Bulk write a contiguous series of documents.
|
void |
Lucene40PostingsReader.init(IndexInput termsIn)
Deprecated.
|
protected int |
Lucene40SkipListReader.readSkipData(int level,
IndexInput skipStream)
Deprecated.
|
Constructor and Description |
---|
Lucene40SkipListReader(IndexInput skipStream,
int maxSkipLevels,
int skipInterval)
Deprecated.
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
Lucene41PostingsReader.init(IndexInput termsIn) |
Constructor and Description |
---|
Reader(IndexInput in) |
Modifier and Type | Method and Description |
---|---|
void |
PulsingPostingsReader.init(IndexInput termsIn) |
Modifier and Type | Method and Description |
---|---|
void |
SepPostingsReader.init(IndexInput termsIn) |
Constructor and Description |
---|
IndexInputInputStream(IndexInput in) |
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 |
MockIndexInputWrapper
Used by MockDirectoryWrapper to create an input stream that
keeps track of when it's been closed.
|
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 |
NativeUnixDirectory.openInput(String name,
IOContext context) |
IndexInput |
WindowsDirectory.openInput(String name,
IOContext context) |
IndexInput |
MockDirectoryWrapper.openInput(String name,
IOContext context) |
IndexInput |
RAMDirectory.openInput(String name,
IOContext context)
Returns a stream reading an existing file.
|
IndexInput |
FilterDirectory.openInput(String name,
IOContext context) |
IndexInput |
SimpleFSDirectory.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 |
Directory.openInput(String name,
IOContext context)
Returns a stream reading an existing file, with the
specified read buffer size.
|
IndexInput |
CompoundFileDirectory.openInput(String name,
IOContext context) |
IndexInput |
FileSwitchDirectory.openInput(String name,
IOContext context) |
IndexInput |
NIOFSDirectory.openInput(String name,
IOContext context)
Creates an IndexInput for the file with the given name.
|
IndexInput |
MockIndexInputWrapper.slice(String sliceDescription,
long offset,
long length) |
IndexInput |
BufferedIndexInput.slice(String sliceDescription,
long offset,
long length) |
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 |
RAMInputStream.slice(String sliceDescription,
long offset,
long length) |
IndexInput |
BufferedChecksumIndexInput.slice(String sliceDescription,
long offset,
long length) |
Modifier and Type | Method and Description |
---|---|
static boolean |
TestHelper.isSimpleFSIndexInput(IndexInput is)
Returns true if the instance of the provided input stream is actually
an SimpleFSIndexInput.
|
static boolean |
TestHelper.isSimpleFSIndexInputClone(IndexInput is)
Returns true if the provided input stream is an SimpleFSIndexInput and
is a clone, that is it does not own its underlying file descriptor.
|
static boolean |
TestHelper.isSimpleFSIndexInputOpen(IndexInput is)
Given an instance of SimpleFSDirectory.SimpleFSIndexInput, this method returns
true if the underlying file descriptor is valid, and false otherwise.
|
void |
MockDirectoryWrapper.removeIndexInput(IndexInput in,
String name) |
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
|
MockIndexInputWrapper(MockDirectoryWrapper dir,
String name,
IndexInput delegate)
Construct an empty output buffer.
|
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 PackedInts.Reader |
PackedInts.getDirectReaderNoHeader(IndexInput in,
PackedInts.Header header)
Expert: Construct a direct
PackedInts.Reader from an IndexInput
without reading metadata at the beginning of the stream. |
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–2018 The Apache Software Foundation. All rights reserved.