Package | Description |
---|---|
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.
|
Modifier and Type | Class and Description |
---|---|
class |
MockIndexInput
IndexInput backed by a byte[] for testing.
|
Modifier and Type | Class and Description |
---|---|
class |
BufferedIndexInput
Base implementation class for buffered
IndexInput . |
class |
ChecksumIndexInput
Writes bytes through to a primary IndexOutput, computing
checksum as it goes.
|
class |
MockIndexInputWrapper
Used by MockDirectoryWrapper to create an input stream that
keeps track of when it's been closed.
|
protected static class |
NIOFSDirectory.NIOFSIndexInput |
class |
RAMInputStream
A memory-resident
IndexInput implementation. |
protected static class |
SimpleFSDirectory.SimpleFSIndexInput |
protected static class |
WindowsDirectory.WindowsIndexInput |
Modifier and Type | Method and Description |
---|---|
IndexInput |
MockDirectoryWrapper.openInput(String name) |
IndexInput |
RAMDirectory.openInput(String name)
Returns a stream reading an existing file.
|
IndexInput |
NRTCachingDirectory.openInput(String name) |
IndexInput |
FSDirectory.openInput(String name) |
IndexInput |
FileSwitchDirectory.openInput(String name) |
abstract IndexInput |
Directory.openInput(String name)
Returns a stream reading an existing file.
|
IndexInput |
WindowsDirectory.openInput(String name,
int bufferSize) |
IndexInput |
DirectIOLinuxDirectory.openInput(String name,
int bufferSize) |
IndexInput |
SimpleFSDirectory.openInput(String name,
int bufferSize)
Creates an IndexInput for the file with the given name.
|
IndexInput |
NRTCachingDirectory.openInput(String name,
int bufferSize) |
IndexInput |
NIOFSDirectory.openInput(String name,
int bufferSize)
Creates an IndexInput for the file with the given name.
|
IndexInput |
MMapDirectory.openInput(String name,
int bufferSize)
Creates an IndexInput for the file with the given name.
|
IndexInput |
Directory.openInput(String name,
int bufferSize)
Returns a stream reading an existing file, with the
specified read buffer size.
|
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) |
Constructor and Description |
---|
ChecksumIndexInput(IndexInput main) |
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
|