/** * Serialize the SeasonalityType to the output stream */ public void writeTo(StreamOutput out) throws IOException { out.writeByte(id); }
private void write(final StreamOutput out) throws IOException { out.writeVInt(SERIALIZATION_FORMAT); out.writeString(type); out.writeString(id); out.writeString(uid.field()); out.writeBytesRef(uid.bytes()); out.writeLong(version); out.writeByte(versionType.getValue()); out.writeLong(seqNo); out.writeLong(primaryTerm); }
/** * Serialize the GapPolicy to the output stream */ public void writeTo(StreamOutput out) throws IOException { out.writeByte(id); }
/** * Writes a boolean. */ public void writeBoolean(boolean b) throws IOException { writeByte(b ? ONE : ZERO); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeByte(id); } }
@Override public void writeByte(byte b) throws IOException { out.writeByte(b); digest.update(b); }
/** * Write a {@link DistanceUnit} to a {@link StreamOutput}. * * @param out {@link StreamOutput} to write to */ @Override public void writeTo(StreamOutput out) throws IOException { out.writeByte((byte) this.ordinal()); } }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeByte((byte) ordinal()); } }
public void writeTo(StreamOutput out) throws IOException { out.writeOptionalString(nodeId); out.writeByte(state.value); out.writeOptionalString(reason); }
public void writeOptionalBoolean(@Nullable Boolean b) throws IOException { if (b == null) { writeByte(TWO); } else { writeBoolean(b); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeByte(currentState.id()); }
/** * Writes restore status to stream output * * @param out stream input */ public void writeTo(StreamOutput out) throws IOException { out.writeOptionalString(nodeId); out.writeByte(state.value); out.writeOptionalString(reason); }
@Override public void writeTo(StreamOutput out) throws IOException { out.writeByte(unit.id()); out.writeString(timeZone.getID()); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeStringArrayNullable(indices); out.writeVInt(statuses.size()); for (ClusterHealthStatus status : statuses) { out.writeByte(status.value()); } indicesOptions.writeIndicesOptions(out); }
@Override public void writeTo(StreamOutput out) throws IOException { snapshot.writeTo(out); out.writeByte(state.value()); out.writeVInt(shards.size()); for (SnapshotIndexShardStatus shard : shards) { shard.writeTo(out); } if (out.getVersion().onOrAfter(Version.V_6_2_0)) { out.writeOptionalBoolean(includeGlobalState); } }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeByte(stage.value()); stats.writeTo(out); out.writeOptionalString(nodeId); out.writeOptionalString(failure); }
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(features.length); for (Feature feature : features) { out.writeByte(feature.id); } out.writeBoolean(humanReadable); if (out.getVersion().onOrAfter(Version.V_6_4_0)) { out.writeBoolean(includeDefaults); } }
@Override public void writeTo(final StreamOutput out) throws IOException { out.writeVInt(shardId); out.writeByte(status.value()); out.writeVInt(activeShards); out.writeVInt(relocatingShards); out.writeVInt(initializingShards); out.writeVInt(unassignedShards); out.writeBoolean(primaryActive); }
@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 { super.writeTo(out); out.writeString(clusterName); out.writeByte(clusterHealthStatus.value()); clusterStateHealth.writeTo(out); out.writeInt(numberOfPendingTasks); out.writeBoolean(timedOut); out.writeInt(numberOfInFlightFetch); out.writeInt(delayedUnassignedShards); out.writeTimeValue(taskMaxWaitingTime); }