@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); type = in.readUTF(); id = in.readUTF(); if (in.readBoolean()) { routing = in.readUTF(); } refresh = in.readBoolean(); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); type = in.readUTF(); id = in.readUTF(); if (in.readBoolean()) { routing = in.readUTF(); } refresh = in.readBoolean(); version = in.readLong(); versionType = VersionType.fromValue(in.readByte()); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeUTF(type); out.writeUTF(id); if (routing == null) { out.writeBoolean(false); } else { out.writeBoolean(true); out.writeUTF(routing); } out.writeBoolean(refresh); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeSharedString(type); out.writeOptionalString(id); out.writeOptionalString(routing); out.writeOptionalString(parent); out.writeOptionalString(timestamp); out.writeLong(ttl); out.writeBytesReference(source); out.writeByte(opType.id()); out.writeBoolean(refresh); out.writeLong(version); out.writeByte(versionType.getValue()); }
@Override public void readFrom(StreamInput in) throws IOException { super.readFrom(in); type = in.readSharedString(); id = in.readOptionalString(); routing = in.readOptionalString(); parent = in.readOptionalString(); timestamp = in.readOptionalString(); ttl = in.readLong(); source = in.readBytesReference(); sourceUnsafe = false; opType = OpType.fromId(in.readByte()); refresh = in.readBoolean(); version = in.readLong(); versionType = VersionType.fromValue(in.readByte()); }
/** * Sets the consistency level of write. Defaults to {@link * org.elasticsearch.action.WriteConsistencyLevel#DEFAULT} */ @Override public DeleteRequest consistencyLevel(WriteConsistencyLevel consistencyLevel) { super.consistencyLevel(consistencyLevel); return this; }
/** Set the replication type for this operation. */ @Override public DeleteRequest replicationType(ReplicationType replicationType) { super.replicationType(replicationType); return this; }
/** * Controls if the operation will be executed on a separate thread when executed locally. Defaults * to <tt>true</tt> when running in embedded mode. */ @Override public DeleteRequest operationThreaded(boolean threadedOperation) { super.operationThreaded(threadedOperation); return this; }
/** Should the listener be called on a separate thread if needed. */ @Override public DeleteRequest listenerThreaded(boolean threadedListener) { super.listenerThreaded(threadedListener); return this; }
/** Sets the index the delete will happen on. */ @Override public DeleteRequest index(String index) { super.index(index); return this; }