org.elasticsearch.index.translog.fs
Interface FsTranslogFile

All Known Implementing Classes:
BufferingFsTranslogFile, SimpleFsTranslogFile

public interface FsTranslogFile


Nested Class Summary
static class FsTranslogFile.Type
           
 
Method Summary
 Translog.Location add(byte[] data, int from, int size)
           
 void close(boolean delete)
           
 int estimatedNumberOfOperations()
           
 long id()
           
 byte[] read(Translog.Location location)
           
 void reuse(FsTranslogFile other)
           
 FsChannelSnapshot snapshot()
           
 void sync()
           
 boolean syncNeeded()
           
 long translogSizeInBytes()
           
 

Method Detail

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.