public static class Translog.Index extends java.lang.Object implements Translog.Operation
Translog.Operation.TypeWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field and Description |
|---|---|
static int |
FORMAT_2x |
static int |
FORMAT_AUTO_GENERATED_IDS |
static int |
SERIALIZATION_FORMAT |
| Constructor and Description |
|---|
Index(Engine.Index index,
Engine.IndexResult indexResult) |
Index(StreamInput in) |
Index(java.lang.String type,
java.lang.String id,
byte[] source) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
long |
estimateSize() |
long |
getAutoGeneratedIdTimestamp() |
Translog.Source |
getSource() |
int |
hashCode() |
java.lang.String |
id() |
Translog.Operation.Type |
opType() |
java.lang.String |
parent() |
java.lang.String |
routing() |
BytesReference |
source() |
long |
timestamp() |
java.lang.String |
toString() |
long |
ttl() |
java.lang.String |
type() |
long |
version() |
VersionType |
versionType() |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitreadType, writeTypepublic static final int FORMAT_2x
public static final int FORMAT_AUTO_GENERATED_IDS
public static final int SERIALIZATION_FORMAT
public Index(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic Index(Engine.Index index, Engine.IndexResult indexResult)
public Index(java.lang.String type,
java.lang.String id,
byte[] source)
public Translog.Operation.Type opType()
opType in interface Translog.Operationpublic long estimateSize()
estimateSize in interface Translog.Operationpublic java.lang.String type()
public java.lang.String id()
public java.lang.String routing()
public java.lang.String parent()
public long timestamp()
public long ttl()
public BytesReference source()
public long version()
public VersionType versionType()
public Translog.Source getSource()
getSource in interface Translog.Operationpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic long getAutoGeneratedIdTimestamp()