|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.index.translog.fs.FsStreamSnapshot
public class FsStreamSnapshot
Constructor Summary | |
---|---|
FsStreamSnapshot(ShardId shardId,
long id,
RafReference raf,
long length,
int totalOperations,
int snapshotOperations)
|
Method Summary | |
---|---|
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)
|
int |
snapshotOperations()
The number of operations in this snapshot. |
java.io.InputStream |
stream()
Returns a stream of this snapshot. |
int |
totalOperations()
The total number of operations in the translog. |
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 FsStreamSnapshot(ShardId shardId, long id, RafReference raf, long length, int totalOperations, int snapshotOperations) 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 totalOperations()
Translog.Snapshot
totalOperations
in interface Translog.Snapshot
public int snapshotOperations()
Translog.Snapshot
snapshotOperations
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 |