コード例 #1
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   taskId.writeTo(out);
   parentTaskId.writeTo(out);
   out.writeStringArrayNullable(nodesIds);
   out.writeStringArrayNullable(actions);
   out.writeOptionalStreamable(timeout);
 }
コード例 #2
0
 public static void writeOriginalIndices(OriginalIndices originalIndices, StreamOutput out)
     throws IOException {
   if (out.getVersion().onOrAfter(Version.V_1_4_0_Beta1)) {
     out.writeStringArrayNullable(originalIndices.indices);
     originalIndices.indicesOptions.writeIndicesOptions(out);
   }
 }
コード例 #3
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   out.writeByte(replicationType.id());
   out.writeByte(consistencyLevel.id());
   timeout.writeTo(out);
   out.writeStringArrayNullable(indices);
   indicesOptions.writeIndicesOptions(out);
 }
コード例 #4
0
 public static void writeOptionalOriginalIndices(OriginalIndices originalIndices, StreamOutput out)
     throws IOException {
   if (out.getVersion().onOrAfter(Version.V_1_4_0_Beta1)) {
     boolean empty = originalIndices == EMPTY;
     out.writeBoolean(empty);
     if (!empty) {
       out.writeStringArrayNullable(originalIndices.indices);
       originalIndices.indicesOptions.writeIndicesOptions(out);
     }
   }
 }
コード例 #5
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   out.writeStringArrayNullable(indices);
   writeSettingsToStream(settings, out);
 }