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 java.lang.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(java.lang.String type, java.lang.String id, long seqNo, long primaryTerm, byte[] source)Index(java.lang.String type, java.lang.String id, long seqNo, long primaryTerm, long version, byte[] source, java.lang.String routing, long autoGeneratedIdTimestamp)Index(Engine.Index index, Engine.IndexResult indexResult) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)longestimateSize()longgetAutoGeneratedIdTimestamp()Translog.SourcegetSource()inthashCode()java.lang.Stringid()Translog.Operation.TypeopType()longprimaryTerm()java.lang.Stringrouting()longseqNo()BytesReferencesource()java.lang.StringtoString()java.lang.Stringtype()longversion()
-
Field Details
-
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 Details
-
Method Details
-
opType
- Specified by:
opTypein interfaceTranslog.Operation
-
estimateSize
public long estimateSize()- Specified by:
estimateSizein interfaceTranslog.Operation
-
type
public java.lang.String type() -
id
public java.lang.String id() -
routing
public java.lang.String routing() -
source
-
seqNo
public long seqNo()- Specified by:
seqNoin interfaceTranslog.Operation
-
primaryTerm
public long primaryTerm()- Specified by:
primaryTermin interfaceTranslog.Operation
-
version
public long version() -
getSource
- Specified by:
getSourcein interfaceTranslog.Operation
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
getAutoGeneratedIdTimestamp
public long getAutoGeneratedIdTimestamp()
-