@Override
 protected void doWriteTo(StreamOutput out) throws IOException {
   out.writeOptionalWriteable(initScript);
   out.writeOptionalWriteable(mapScript);
   out.writeOptionalWriteable(combineScript);
   out.writeOptionalWriteable(reduceScript);
   boolean hasParams = params != null;
   out.writeBoolean(hasParams);
   if (hasParams) {
     out.writeMap(params);
   }
 }
 @Override
 protected void doWriteTo(StreamOutput out) throws IOException {
   out.writeString(type);
   out.writeBoolean(score);
   out.writeNamedWriteable(query);
   out.writeOptionalWriteable(innerHit);
   out.writeBoolean(ignoreUnmapped);
 }
 @Override
 protected void innerWriteTo(StreamOutput out) throws IOException {
   bucketCountThresholds.writeTo(out);
   out.writeOptionalString(executionHint);
   out.writeOptionalNamedWriteable(filterBuilder);
   out.writeOptionalWriteable(includeExclude);
   out.writeNamedWriteable(significanceHeuristic);
 }
Exemplo n.º 4
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   script.writeTo(out);
   type.writeTo(out);
   order.writeTo(out);
   out.writeOptionalWriteable(sortMode);
   out.writeOptionalString(nestedPath);
   out.writeOptionalNamedWriteable(nestedFilter);
 }
Exemplo n.º 5
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   out.writeVLong(timestamp);
   cpu.writeTo(out);
   mem.writeTo(out);
   swap.writeTo(out);
   if (out.getVersion().onOrAfter(Version.V_5_1_1_UNRELEASED)) {
     out.writeOptionalWriteable(cgroup);
   }
 }
Exemplo n.º 6
0
    @Override
    public void writeTo(StreamOutput out) throws IOException {
      out.writeString(index);
      out.writeOptionalString(type);
      out.writeString(id);
      out.writeOptionalString(routing);
      out.writeOptionalString(parent);
      out.writeOptionalStringArray(storedFields);
      out.writeLong(version);
      out.writeByte(versionType.getValue());

      out.writeOptionalWriteable(fetchSourceContext);
    }
  @Override
  public void writeTo(StreamOutput out) throws IOException {
    this.getShard().writeTo(out);
    out.writeBoolean(this.isPrimary());
    out.writeBoolean(this.isStillFetchingShardData());
    out.writeOptionalString(this.getAssignedNodeId());
    out.writeOptionalWriteable(this.getUnassignedInfo());
    out.writeVLong(allocationDelayMillis);
    out.writeVLong(remainingDelayMillis);

    out.writeVInt(this.nodeExplanations.size());
    for (NodeExplanation explanation : this.nodeExplanations.values()) {
      explanation.writeTo(out);
    }
  }
Exemplo n.º 8
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   out.writeOptionalString(type);
   out.writeOptionalString(id);
   out.writeOptionalString(routing);
   out.writeOptionalString(parent);
   if (out.getVersion().before(Version.V_6_0_0_alpha1_UNRELEASED)) {
     out.writeOptionalString(null);
     out.writeOptionalWriteable(null);
   }
   out.writeBytesReference(source);
   out.writeByte(opType.getId());
   out.writeLong(version);
   out.writeByte(versionType.getValue());
   out.writeOptionalString(pipeline);
   out.writeBoolean(isRetry);
   out.writeLong(autoGeneratedTimestamp);
 }
Exemplo n.º 9
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   clusterName.writeTo(out);
   out.writeOptionalWriteable(node);
 }
Exemplo n.º 10
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   out.writeOptionalWriteable(task);
 }