public abstract class BlockIndexInput extends Object implements Closeable
This class is safe for concurrent file access. This is achieved by cloning
the underlying IndexInput
in every BlockIndexInput.BlockReader
.
Modifier and Type | Class and Description |
---|---|
protected class |
BlockIndexInput.BlockReader
Abstraction over the reader of the blocks of the postings file.
|
class |
BlockIndexInput.Index
This class stores the file pointer of a
DataInput . |
Modifier and Type | Field and Description |
---|---|
protected org.apache.lucene.store.IndexInput |
in |
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
BlockIndexInput(org.apache.lucene.store.IndexInput in) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
abstract BlockIndexInput.BlockReader |
getBlockReader()
Create a new
BlockIndexInput.BlockReader associated to the BlockIndexInput . |
BlockIndexInput.Index |
index() |
protected final org.apache.lucene.store.IndexInput in
protected static final org.slf4j.Logger logger
public BlockIndexInput(org.apache.lucene.store.IndexInput in) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public BlockIndexInput.Index index() throws IOException
IOException
public abstract BlockIndexInput.BlockReader getBlockReader()
BlockIndexInput.BlockReader
associated to the BlockIndexInput
.
Subclasses must create a clone of the in
to ensure
safe concurrent file access.
Copyright © 2014. All rights reserved.