Java Code Examples for org.elasticsearch.common.io.stream.StreamOutput#writeList()

The following examples show how to use org.elasticsearch.common.io.stream.StreamOutput#writeList() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JvmStats.java    From crate with Apache License 2.0 5 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeVLong(timestamp);
    out.writeVLong(uptime);
    mem.writeTo(out);
    threads.writeTo(out);
    gc.writeTo(out);
    out.writeList(bufferPools);
    classes.writeTo(out);
}
 
Example 2
Source File: AbstractAllocationDecision.java    From crate with Apache License 2.0 5 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeOptionalWriteable(targetNode);
    if (nodeDecisions != null) {
        out.writeBoolean(true);
        out.writeList(nodeDecisions);
    } else {
        out.writeBoolean(false);
    }
}
 
Example 3
Source File: JvmStats.java    From crate with Apache License 2.0 5 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeVLong(heapCommitted);
    out.writeVLong(heapUsed);
    out.writeVLong(nonHeapCommitted);
    out.writeVLong(nonHeapUsed);
    out.writeVLong(heapMax);
    out.writeList(pools);
}
 
Example 4
Source File: AddFeaturesToSetAction.java    From elasticsearch-learning-to-rank with Apache License 2.0 5 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeString(store);
    out.writeOptionalString(featureNameQuery);
    if (features != null) {
        out.writeList(features);
    }
    out.writeBoolean(merge);
    out.writeString(featureSet);
    out.writeOptionalString(routing);
    out.writeOptionalWriteable(validation);
}
 
Example 5
Source File: TransportBroadcastByNodeAction.java    From crate with Apache License 2.0 5 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    indicesLevelRequest.writeTo(out);
    out.writeList(shards);
    out.writeString(nodeId);
}
 
Example 6
Source File: TransportBroadcastByNodeAction.java    From crate with Apache License 2.0 5 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(nodeId);
    out.writeVInt(totalShards);
    out.writeVInt(results.size());
    for (ShardOperationResult result : results) {
        out.writeOptionalWriteable(result);
    }
    out.writeBoolean(exceptions != null);
    if (exceptions != null) {
        out.writeList(exceptions);
    }
}
 
Example 7
Source File: DropViewResponse.java    From crate with Apache License 2.0 4 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeList(missing);
}
 
Example 8
Source File: SnapshotDeletionsInProgress.java    From crate with Apache License 2.0 4 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeList(entries);
}
 
Example 9
Source File: IndexGraveyard.java    From crate with Apache License 2.0 4 votes vote down vote up
@Override
public void writeTo(final StreamOutput out) throws IOException {
    out.writeList(added);
    out.writeVInt(removedCount);
}
 
Example 10
Source File: TransportNodesListGatewayStartedShards.java    From crate with Apache License 2.0 4 votes vote down vote up
@Override
protected void writeNodesTo(StreamOutput out, List<NodeGatewayStartedShards> nodes) throws IOException {
    out.writeList(nodes);
}
 
Example 11
Source File: TransportNodesListGatewayMetaState.java    From crate with Apache License 2.0 4 votes vote down vote up
@Override
protected void writeNodesTo(StreamOutput out, List<NodeGatewayMetaState> nodes) throws IOException {
    out.writeList(nodes);
}
 
Example 12
Source File: NodesStatsResponse.java    From crate with Apache License 2.0 4 votes vote down vote up
@Override
protected void writeNodesTo(StreamOutput out, List<NodeStats> nodes) throws IOException {
    out.writeList(nodes);
}
 
Example 13
Source File: CronResponse.java    From anomaly-detection with Apache License 2.0 4 votes vote down vote up
@Override
protected void writeNodesTo(StreamOutput out, List<CronNodeResponse> nodes) throws IOException {
    out.writeList(nodes);
}
 
Example 14
Source File: DropViewRequest.java    From crate with Apache License 2.0 4 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeList(names);
    out.writeBoolean(ifExists);
}
 
Example 15
Source File: CachesStatsAction.java    From elasticsearch-learning-to-rank with Apache License 2.0 4 votes vote down vote up
@Override
protected void writeNodesTo(StreamOutput out, List<CachesStatsNodeResponse> nodes) throws IOException {
    out.writeList(nodes);
}
 
Example 16
Source File: LoggingSearchExtBuilder.java    From elasticsearch-learning-to-rank with Apache License 2.0 4 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeList(logSpecs);
}
 
Example 17
Source File: BaseNodesResponse.java    From crate with Apache License 2.0 4 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    clusterName.writeTo(out);
    writeNodesTo(out, nodes);
    out.writeList(failures);
}
 
Example 18
Source File: ListTasksResponse.java    From Elasticsearch with Apache License 2.0 4 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeList(tasks);
}
 
Example 19
Source File: ADStatsNodesResponse.java    From anomaly-detection with Apache License 2.0 4 votes vote down vote up
@Override
public void writeNodesTo(StreamOutput out, List<ADStatsNodeResponse> nodes) throws IOException {
    out.writeList(nodes);
}
 
Example 20
Source File: ThreadPoolStats.java    From crate with Apache License 2.0 4 votes vote down vote up
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeList(stats);
}