org.elasticsearch.index.translog
Class Translog.Create

java.lang.Object
  extended by org.elasticsearch.index.translog.Translog.Create
All Implemented Interfaces:
Streamable, Translog.Operation
Enclosing interface:
Translog

public static class Translog.Create
extends java.lang.Object
implements Translog.Operation


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.index.translog.Translog.Operation
Translog.Operation.Type
 
Constructor Summary
Translog.Create()
           
Translog.Create(Engine.Create create)
           
Translog.Create(java.lang.String type, java.lang.String id, byte[] source)
           
 
Method Summary
 long estimateSize()
           
 java.lang.String id()
           
 Translog.Operation.Type opType()
           
 void readFrom(StreamInput in)
           
 java.lang.String routing()
           
 byte[] source()
           
 java.lang.String type()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Translog.Create

public Translog.Create()

Translog.Create

public Translog.Create(Engine.Create create)

Translog.Create

public Translog.Create(java.lang.String type,
                       java.lang.String id,
                       byte[] source)
Method Detail

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 java.lang.String id()

source

public byte[] source()

type

public java.lang.String type()

routing

public java.lang.String routing()

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