org.elasticsearch.index.translog
Class Translog.Index

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

public static class Translog.Index
extends 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.Index()
           
Translog.Index(Engine.Index index)
           
Translog.Index(String type, String id, byte[] source)
           
 
Method Summary
 long estimateSize()
           
 String id()
           
 Translog.Operation.Type opType()
           
 String parent()
           
 void readFrom(StreamInput in)
           
 Translog.Source readSource(StreamInput in)
           
 String routing()
           
 BytesReference source()
           
 long timestamp()
           
 long ttl()
           
 String type()
           
 long version()
           
 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.Index

public Translog.Index()

Translog.Index

public Translog.Index(Engine.Index index)

Translog.Index

public Translog.Index(String type,
                      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

type

public String type()

id

public String id()

routing

public String routing()

parent

public String parent()

timestamp

public long timestamp()

ttl

public long ttl()

source

public BytesReference source()

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.