public interface OakIndexFile
| Modifier and Type | Method and Description |
|---|---|
OakIndexFile |
clone()
Duplicates this instance to be used by a different consumer/thread.
|
void |
close() |
void |
copyBytes(org.apache.lucene.store.DataInput input,
long numBytes)
Copy numBytes bytes from input to ourself.
|
void |
flush()
Flushes the content into storage.
|
String |
getName() |
static OakIndexFile |
getOakIndexFile(String name,
org.apache.jackrabbit.oak.spi.state.NodeBuilder file,
String dirDetails,
@NotNull BlobFactory blobFactory) |
static OakIndexFile |
getOakIndexFile(String name,
org.apache.jackrabbit.oak.spi.state.NodeBuilder file,
String dirDetails,
@NotNull BlobFactory blobFactory,
boolean streamingWriteEnabled) |
boolean |
isClosed() |
long |
length() |
long |
position() |
void |
readBytes(byte[] b,
int offset,
int len)
Read
len number of bytes from underlying storage and copy them
into byte array b starting at offset |
void |
seek(long pos)
Seek current location of access to
pos |
boolean |
supportsCopyFromDataInput() |
void |
writeBytes(byte[] b,
int offset,
int len)
Writes
len number of bytes from byte array b
starting at offset into the underlying storage |
static OakIndexFile getOakIndexFile(String name, org.apache.jackrabbit.oak.spi.state.NodeBuilder file, String dirDetails, @NotNull @NotNull BlobFactory blobFactory)
static OakIndexFile getOakIndexFile(String name, org.apache.jackrabbit.oak.spi.state.NodeBuilder file, String dirDetails, @NotNull @NotNull BlobFactory blobFactory, boolean streamingWriteEnabled)
boolean supportsCopyFromDataInput()
DataInput directly.String getName()
long length()
boolean isClosed()
void close()
long position()
void seek(long pos) throws IOException
pospos - IOExceptionOakIndexFile clone()
void readBytes(byte[] b,
int offset,
int len)
throws IOException
len number of bytes from underlying storage and copy them
into byte array b starting at offsetb - byte array to copy contents read from storageoffset - index into b where the copy beginslen - numeber of bytes to be read from storageIOExceptionvoid writeBytes(byte[] b,
int offset,
int len)
throws IOException
len number of bytes from byte array b
starting at offset into the underlying storageb - byte array to copy contents into the storageoffset - index into b where the copy beginslen - numeber of bytes to be written to storageIOExceptionvoid copyBytes(org.apache.lucene.store.DataInput input,
long numBytes)
throws IOException
IOExceptionvoid flush()
throws IOException
IOExceptionCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.