org.elasticsearch.index.translog
Class Translog.Create
java.lang.Object
org.elasticsearch.index.translog.Translog.Create
- All Implemented Interfaces:
- Streamable, Translog.Operation
- Enclosing interface:
- Translog
public static class Translog.Create
- extends Object
- implements Translog.Operation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Translog.Create
public Translog.Create()
Translog.Create
public Translog.Create(Engine.Create create)
Translog.Create
public Translog.Create(String type,
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
id
public String id()
source
public BytesReference source()
type
public String type()
routing
public String routing()
parent
public String parent()
timestamp
public long timestamp()
ttl
public long ttl()
version
public long version()
readSource
public Translog.Source readSource(StreamInput in)
throws IOException
- Specified by:
readSource
in interface Translog.Operation
- Throws:
IOException
readFrom
public void readFrom(StreamInput in)
throws IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
IOException
writeTo
public void writeTo(StreamOutput out)
throws IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.