Ejemplo n.º 1
0
 @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();
 }
Ejemplo n.º 2
0
 @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());
 }
Ejemplo n.º 3
0
 @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);
 }
Ejemplo n.º 4
0
 @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());
 }
Ejemplo n.º 5
0
  @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());
  }
Ejemplo n.º 6
0
 /**
  * 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;
 }
Ejemplo n.º 7
0
 /** Set the replication type for this operation. */
 @Override
 public DeleteRequest replicationType(ReplicationType replicationType) {
   super.replicationType(replicationType);
   return this;
 }
Ejemplo n.º 8
0
 /**
  * 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;
 }
Ejemplo n.º 9
0
 /** Should the listener be called on a separate thread if needed. */
 @Override
 public DeleteRequest listenerThreaded(boolean threadedListener) {
   super.listenerThreaded(threadedListener);
   return this;
 }
Ejemplo n.º 10
0
 /** Sets the index the delete will happen on. */
 @Override
 public DeleteRequest index(String index) {
   super.index(index);
   return this;
 }