org.elasticsearch.index.translog
Class Translog.Index
java.lang.Object
org.elasticsearch.index.translog.Translog.Index
- All Implemented Interfaces:
- Streamable, Translog.Operation
- Enclosing interface:
- Translog
public static class Translog.Index
- extends java.lang.Object
- implements Translog.Operation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Translog.Index
public Translog.Index()
Translog.Index
public Translog.Index(Engine.Index index)
Translog.Index
public Translog.Index(java.lang.String type,
java.lang.String id,
byte[] source)
opType
public Translog.Operation.Type opType()
- Specified by:
opType
in interface Translog.Operation
estimateSize
public long estimateSize()
- Specified by:
estimateSize
in interface Translog.Operation
type
public java.lang.String type()
id
public java.lang.String id()
routing
public java.lang.String routing()
parent
public java.lang.String parent()
timestamp
public long timestamp()
ttl
public long ttl()
source
public byte[] source()
sourceOffset
public int sourceOffset()
sourceLength
public int sourceLength()
version
public long version()
readSource
public Translog.Source readSource(BytesStreamInput in)
throws java.io.IOException
- Specified by:
readSource
in interface Translog.Operation
- Throws:
java.io.IOException
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
java.io.IOException