public class BufferedWrite extends Object
Constructor and Description |
---|
BufferedWrite(IBufferedWriter store) |
Modifier and Type | Method and Description |
---|---|
int |
flush(IReopenChannel<FileChannel> opener)
Flush buffered data to the backing channel.
|
String |
getStats(StringBuffer buf,
boolean reset) |
void |
release()
Release the direct buffer associated with this object.
|
void |
reset()
Reset the buffer position and limit and clear the starting offset on the
file to
-1 . |
int |
write(long offset,
ByteBuffer data,
IReopenChannel<FileChannel> opener)
Buffer a write.
|
public BufferedWrite(IBufferedWriter store) throws InterruptedException
InterruptedException
public void release() throws InterruptedException
InterruptedException
public int write(long offset, ByteBuffer data, IReopenChannel<FileChannel> opener) throws IOException
offset
- The offset on the backing channel at which the data should be
written.data
- The data.opener
- The object which knows how to re-open the backing channel.IOException
public int flush(IReopenChannel<FileChannel> opener) throws IOException
opener
- The object which knows how to re-open the backing channel.IOException
public void reset()
-1
.public String getStats(StringBuffer buf, boolean reset)
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.