java.lang.Object
org.elasticsearch.index.translog.Translog.Operation
org.elasticsearch.index.translog.Translog.Index
- All Implemented Interfaces:
Writeable
- Enclosing class:
Translog
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.translog.Translog.Operation
Translog.Operation.TypeNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class org.elasticsearch.index.translog.Translog.Operation
primaryTerm, seqNo -
Constructor Summary
ConstructorsConstructorDescriptionIndex(String id, long seqNo, long primaryTerm, long version, BytesReference source, String routing, long autoGeneratedIdTimestamp) Index(Engine.Index index, Engine.IndexResult indexResult) -
Method Summary
Methods inherited from class org.elasticsearch.index.translog.Translog.Operation
primaryTerm, readOperation, seqNo, writeTo
-
Field Details
-
FORMAT_NO_PARENT
public static final int FORMAT_NO_PARENT- See Also:
-
FORMAT_NO_VERSION_TYPE
public static final int FORMAT_NO_VERSION_TYPE- See Also:
-
FORMAT_NO_DOC_TYPE
public static final int FORMAT_NO_DOC_TYPE- See Also:
-
SERIALIZATION_FORMAT
public static final int SERIALIZATION_FORMAT- See Also:
-
-
Constructor Details
-
Index
-
Index
public Index(String id, long seqNo, long primaryTerm, long version, BytesReference source, String routing, long autoGeneratedIdTimestamp)
-
-
Method Details
-
opType
- Specified by:
opTypein classTranslog.Operation
-
estimateSize
public long estimateSize()- Specified by:
estimateSizein classTranslog.Operation
-
id
-
routing
-
source
-
version
public long version() -
writeBody
- Specified by:
writeBodyin classTranslog.Operation- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
getAutoGeneratedIdTimestamp
public long getAutoGeneratedIdTimestamp() -
equalsWithoutAutoGeneratedTimestamp
-