Package org.apache.lucene.store
Binary i/o API, used for all index data.
-
Interface Summary Interface Description RandomAccessInput Random Access Index API. -
Class Summary Class Description BaseDirectory Base implementation for a concreteDirectory
that uses aLockFactory
for locking.BufferedChecksum Wraps anotherChecksum
with an internal buffer to speed up checksum calculations.BufferedChecksumIndexInput Simple implementation ofChecksumIndexInput
that wraps another input and delegates calls.BufferedIndexInput Base implementation class for bufferedIndexInput
.ByteArrayDataInput DataInput backed by a byte array.ByteArrayDataOutput DataOutput backed by a byte array.ByteBufferIndexInput Deprecated. This class was made public for internal reasons (instanceof
checks).ByteBuffersDataInput ByteBuffersDataOutput ADataOutput
storing data in a list ofByteBuffer
s.ByteBuffersDataOutput.ByteBufferRecycler An implementation of aByteBuffer
allocation and recycling policy.ByteBuffersDirectory AByteBuffer
-basedDirectory
implementation that can be used to store index files on the heap.ByteBuffersIndexInput ByteBuffersIndexOutput AnIndexOutput
writing to aByteBuffersDataOutput
.ChecksumIndexInput Extension of IndexInput, computing checksum as it goes.DataInput Abstract base class for performing read operations of Lucene's low-level data types.DataOutput Abstract base class for performing write operations of Lucene's low-level data types.Directory ADirectory
provides an abstraction layer for storing a list of files.FileSwitchDirectory Expert: A Directory instance that switches files between two other Directory instances.FilterDirectory Directory implementation that delegates calls to another directory.FilterIndexInput IndexInput implementation that delegates calls to another directory.FilterIndexOutput IndexOutput implementation that delegates calls to another directory.FlushInfo A FlushInfo provides information required for a FLUSH context.FSDirectory Base class for Directory implementations that store index files in the file system.FSLockFactory Base class for file system based locking implementation.IndexInput Abstract base class for input from a file in aDirectory
.IndexOutput ADataOutput
for appending data to a file in aDirectory
.InputStreamDataInput ADataInput
wrapping a plainInputStream
.IOContext IOContext holds additional details on the merge/search context.Lock An interprocess mutex lock.LockFactory Base class for Locking implementation.LockStressTest Simple standalone tool that forever acquires and releases a lock using a specificLockFactory
.LockValidatingDirectoryWrapper This class makes a best-effort check that a providedLock
is valid before any destructive filesystem operation.LockVerifyServer Simple standalone server that must be running when you useVerifyingLockFactory
.MergeInfo A MergeInfo provides information required for a MERGE context.MMapDirectory File-basedDirectory
implementation that uses mmap for reading, andFSDirectory.FSIndexOutput
for writing.NativeFSLockFactory ImplementsLockFactory
using native OS file locks.NIOFSDirectory AnFSDirectory
implementation that uses java.nio's FileChannel's positional read, which allows multiple threads to read from the same file without synchronizing.NoLockFactory Use thisLockFactory
to disable locking entirely.NRTCachingDirectory Wraps a RAM-resident directory around any provided delegate directory, to be used during NRT search.OutputStreamDataOutput ADataOutput
wrapping a plainOutputStream
.OutputStreamIndexOutput Implementation class for bufferedIndexOutput
that writes to anOutputStream
.RateLimitedIndexOutput RateLimiter Abstract base class to rate limit IO.RateLimiter.SimpleRateLimiter Simple class to rate limit IO.SimpleFSLockFactory SingleInstanceLockFactory ImplementsLockFactory
for a single in-process instance, meaning all locking will take place through this one instance.SleepingLockWrapper Directory that wraps another, and that sleeps and retries if obtaining the lock fails.TrackingDirectoryWrapper A delegating Directory that records which files were written to and deleted.VerifyingLockFactory ALockFactory
that wraps anotherLockFactory
and verifies that each lock obtain/release is "correct" (never results in two processes holding the lock at the same time). -
Enum Summary Enum Description IOContext.Context Context is a enumerator which specifies the context in which the Directory is being used for. -
Exception Summary Exception Description AlreadyClosedException This exception is thrown when there is an attempt to access something that has already been closed.LockObtainFailedException This exception is thrown when thewrite.lock
could not be acquired.LockReleaseFailedException This exception is thrown when thewrite.lock
could not be released.