|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ThreadSafe public interface Translog
Nested Class Summary | |
---|---|
static class |
Translog.Create
|
static class |
Translog.Delete
|
static class |
Translog.DeleteByQuery
|
static class |
Translog.Index
|
static interface |
Translog.Operation
A generic interface representing an operation performed on the transaction log. |
static interface |
Translog.Snapshot
A snapshot of the transaction log, allows to iterate over all the transaction log operations. |
Method Summary | |
---|---|
void |
add(Translog.Operation operation)
Adds a create operation to the transaction log. |
void |
close()
Closes the transaction log. |
long |
currentId()
Returns the id of the current transaction log. |
ByteSizeValue |
estimateMemorySize()
The estimated memory size this translog is taking. |
void |
newTranslog(long id)
Creates a new transaction log internally. |
int |
size()
Returns the number of operations in the transaction log. |
Translog.Snapshot |
snapshot()
Snapshots the current transaction log allowing to safely iterate over the snapshot. |
Translog.Snapshot |
snapshot(Translog.Snapshot snapshot)
Snapshots the delta between the current state of the translog, and the state defined by the provided snapshot. |
Methods inherited from interface org.elasticsearch.index.shard.IndexShardComponent |
---|
indexSettings, shardId |
Method Detail |
---|
long currentId()
int size()
ByteSizeValue estimateMemorySize()
void newTranslog(long id) throws TranslogException
TranslogException
void add(Translog.Operation operation) throws TranslogException
TranslogException
Translog.Snapshot snapshot() throws TranslogException
TranslogException
Translog.Snapshot snapshot(Translog.Snapshot snapshot)
void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |