org.elasticsearch.index.translog.fs
Interface FsTranslogFile
- All Known Implementing Classes:
- BufferingFsTranslogFile, SimpleFsTranslogFile
public interface FsTranslogFile
id
long id()
estimatedNumberOfOperations
int estimatedNumberOfOperations()
translogSizeInBytes
long translogSizeInBytes()
add
Translog.Location add(byte[] data,
int from,
int size)
throws IOException
- Throws:
IOException
read
byte[] read(Translog.Location location)
throws IOException
- Throws:
IOException
close
void close(boolean delete)
throws TranslogException
- Throws:
TranslogException
snapshot
FsChannelSnapshot snapshot()
throws TranslogException
- Throws:
TranslogException
reuse
void reuse(FsTranslogFile other)
throws TranslogException
- Throws:
TranslogException
sync
void sync()
syncNeeded
boolean syncNeeded()
Copyright © 2009-2012. All Rights Reserved.