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
pos
pos
- IOException
OakIndexFile 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 offset
b
- byte array to copy contents read from storageoffset
- index into b
where the copy beginslen
- numeber of bytes to be read from storageIOException
void 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 storageIOException
void copyBytes(org.apache.lucene.store.DataInput input, long numBytes) throws IOException
IOException
void flush() throws IOException
IOException
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.