|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.index.translog.fs.FsChannelSnapshot
public class FsChannelSnapshot
Constructor Summary | |
---|---|
FsChannelSnapshot(long id,
RafReference raf,
long length,
int totalOperations)
|
Method Summary | |
---|---|
int |
estimatedTotalOperations()
The total number of operations in the translog. |
boolean |
hasNext()
|
long |
length()
Returns the internal length (*not* number of operations) of this snapshot. |
long |
lengthInBytes()
The length in bytes of this stream. |
Translog.Operation |
next()
|
long |
position()
|
boolean |
release()
|
void |
seekForward(long length)
|
java.io.InputStream |
stream()
Returns a stream of this snapshot. |
long |
translogId()
The id of the translog the snapshot was taken with. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FsChannelSnapshot(long id, RafReference raf, long length, int totalOperations) throws java.io.FileNotFoundException
java.io.FileNotFoundException
Method Detail |
---|
public long translogId()
Translog.Snapshot
translogId
in interface Translog.Snapshot
public long position()
position
in interface Translog.Snapshot
public long length()
Translog.Snapshot
length
in interface Translog.Snapshot
public int estimatedTotalOperations()
Translog.Snapshot
estimatedTotalOperations
in interface Translog.Snapshot
public java.io.InputStream stream() throws java.io.IOException
Translog.Snapshot
stream
in interface Translog.Snapshot
java.io.IOException
public long lengthInBytes()
Translog.Snapshot
lengthInBytes
in interface Translog.Snapshot
public boolean hasNext()
hasNext
in interface Translog.Snapshot
public Translog.Operation next()
next
in interface Translog.Snapshot
public void seekForward(long length)
seekForward
in interface Translog.Snapshot
public boolean release() throws ElasticSearchException
release
in interface Releasable
ElasticSearchException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |