Package org.elasticsearch.index.translog
Class Translog.Index
- java.lang.Object
-
- org.elasticsearch.index.translog.Translog.Index
-
- All Implemented Interfaces:
Translog.Operation
- Enclosing class:
- 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
-
-
Field Summary
Fields Modifier and Type Field Description static intFORMAT_6_0static intFORMAT_NO_PARENTstatic intFORMAT_NO_VERSION_TYPEstatic intSERIALIZATION_FORMAT
-
Constructor Summary
Constructors Constructor Description Index(String type, String id, long seqNo, long primaryTerm, byte[] source)Index(String type, String id, long seqNo, long primaryTerm, long version, byte[] source, String routing, long autoGeneratedIdTimestamp)Index(Engine.Index index, Engine.IndexResult indexResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longestimateSize()longgetAutoGeneratedIdTimestamp()Translog.SourcegetSource()inthashCode()Stringid()Translog.Operation.TypeopType()longprimaryTerm()Stringrouting()longseqNo()BytesReferencesource()StringtoString()Stringtype()longversion()
-
-
-
Field Detail
-
FORMAT_6_0
public static final int FORMAT_6_0
- See Also:
- Constant Field Values
-
FORMAT_NO_PARENT
public static final int FORMAT_NO_PARENT
- See Also:
- Constant Field Values
-
FORMAT_NO_VERSION_TYPE
public static final int FORMAT_NO_VERSION_TYPE
- See Also:
- Constant Field Values
-
SERIALIZATION_FORMAT
public static final int SERIALIZATION_FORMAT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Index
public Index(Engine.Index index, Engine.IndexResult indexResult)
-
-
Method Detail
-
opType
public Translog.Operation.Type opType()
- Specified by:
opTypein interfaceTranslog.Operation
-
estimateSize
public long estimateSize()
- Specified by:
estimateSizein interfaceTranslog.Operation
-
type
public String type()
-
id
public String id()
-
routing
public String routing()
-
source
public BytesReference source()
-
seqNo
public long seqNo()
- Specified by:
seqNoin interfaceTranslog.Operation
-
primaryTerm
public long primaryTerm()
- Specified by:
primaryTermin interfaceTranslog.Operation
-
version
public long version()
-
getSource
public Translog.Source getSource()
- Specified by:
getSourcein interfaceTranslog.Operation
-
getAutoGeneratedIdTimestamp
public long getAutoGeneratedIdTimestamp()
-
-