Java Code Examples for org.elasticsearch.common.io.stream.StreamOutput#writeStringArray()
The following examples show how to use
org.elasticsearch.common.io.stream.StreamOutput#writeStringArray() .
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: RestoreSnapshotRequest.java From crate with Apache License 2.0 | 6 votes |
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(snapshot); out.writeString(repository); out.writeStringArray(indices); indicesOptions.writeIndicesOptions(out); out.writeOptionalString(renamePattern); out.writeOptionalString(renameReplacement); out.writeBoolean(waitForCompletion); out.writeBoolean(includeGlobalState); out.writeBoolean(partial); out.writeBoolean(includeAliases); writeSettingsToStream(settings, out); writeSettingsToStream(indexSettings, out); out.writeStringArray(ignoreIndexSettings); out.writeStringArray(templates); }
Example 2
Source File: ExplainRequest.java From Elasticsearch with Apache License 2.0 | 6 votes |
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(type); out.writeString(id); out.writeOptionalString(routing); out.writeOptionalString(preference); out.writeBytesReference(source); out.writeStringArray(filteringAlias); if (fields != null) { out.writeBoolean(true); out.writeStringArray(fields); } else { out.writeBoolean(false); } FetchSourceContext.optionalWriteToStream(fetchSourceContext, out); out.writeVLong(nowInMillis); }
Example 3
Source File: ClusterSearchShardsRequest.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(indices.length); for (String index : indices) { out.writeString(index); } out.writeOptionalString(routing); out.writeOptionalString(preference); out.writeStringArray(types); indicesOptions.writeIndicesOptions(out); }
Example 4
Source File: DeleteIndexRequest.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeStringArray(indices); indicesOptions.writeIndicesOptions(out); timeout.writeTo(out); }
Example 5
Source File: CreateSnapshotRequest.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(snapshot); out.writeString(repository); out.writeStringArray(indices); indicesOptions.writeIndicesOptions(out); writeSettingsToStream(settings, out); out.writeBoolean(includeGlobalState); out.writeBoolean(waitForCompletion); out.writeBoolean(partial); }
Example 6
Source File: TermsByQueryShardRequest.java From siren-join with GNU Affero General Public License v3.0 | 5 votes |
/** * Serialize * * @param out the output * @throws IOException */ @Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); request.writeTo(out); if (filteringAliases == null) { out.writeBoolean(false); } else { out.writeBoolean(true); out.writeStringArray(filteringAliases); } }
Example 7
Source File: ExportRequest.java From elasticsearch-inout-plugin with Apache License 2.0 | 5 votes |
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeOptionalString(routing); out.writeOptionalString(preference); out.writeBytesReference(source); out.writeStringArray(types); }
Example 8
Source File: GetAliasesRequest.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeStringArray(indices); out.writeStringArray(aliases); indicesOptions.writeIndicesOptions(out); }
Example 9
Source File: ClearScrollRequest.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); if (scrollIds == null) { out.writeVInt(0); } else { out.writeStringArray(scrollIds.toArray(new String[scrollIds.size()])); } }
Example 10
Source File: DocumentGroup.java From elasticsearch-carrot2 with Apache License 2.0 | 5 votes |
@Override public void writeTo(StreamOutput out) throws IOException { out.writeVInt(id); out.writeDouble(score); out.writeStringArray(phrases); out.writeBoolean(ungroupedDocuments); out.writeStringArray(documentReferences); out.writeVInt(subgroups.length); for (DocumentGroup group : subgroups) { group.writeTo(out); } }
Example 11
Source File: NodeMappingRefreshAction.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(index); out.writeStringArray(types); out.writeString(nodeId); out.writeString(indexUUID); }
Example 12
Source File: SearchIntoRequest.java From elasticsearch-inout-plugin with Apache License 2.0 | 5 votes |
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeOptionalString(routing); out.writeOptionalString(preference); out.writeBytesReference(source); out.writeStringArray(types); }
Example 13
Source File: ShardSearchLocalRequest.java From Elasticsearch with Apache License 2.0 | 5 votes |
protected void innerWriteTo(StreamOutput out, boolean asKey) throws IOException { out.writeString(index); out.writeVInt(shardId); out.writeByte(searchType.id()); if (!asKey) { out.writeVInt(numberOfShards); } if (scroll == null) { out.writeBoolean(false); } else { out.writeBoolean(true); scroll.writeTo(out); } out.writeBytesReference(source); out.writeBytesReference(extraSource); out.writeStringArray(types); out.writeStringArrayNullable(filteringAliases); if (!asKey) { out.writeVLong(nowInMillis); } out.writeBytesReference(templateSource); boolean hasTemplate = template != null; out.writeBoolean(hasTemplate); if (hasTemplate) { template.writeTo(out); } out.writeOptionalBoolean(requestCache); }
Example 14
Source File: IndexWarmersMetaData.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void writeTo(StreamOutput out) throws IOException { out.writeVInt(entries().size()); for (Entry entry : entries()) { out.writeString(entry.name()); out.writeStringArray(entry.types()); if (entry.source() == null) { out.writeBoolean(false); } else { out.writeBoolean(true); out.writeBytesReference(entry.source()); } out.writeOptionalBoolean(entry.requestCache()); } }
Example 15
Source File: PipelineAggregator.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public final void writeTo(StreamOutput out) throws IOException { out.writeString(name); out.writeStringArray(bucketsPaths); out.writeMap(metaData); doWriteTo(out); }
Example 16
Source File: GetWarmersResponse.java From Elasticsearch with Apache License 2.0 | 5 votes |
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeVInt(warmers.size()); for (ObjectObjectCursor<String, List<IndexWarmersMetaData.Entry>> indexEntry : warmers) { out.writeString(indexEntry.key); out.writeVInt(indexEntry.value.size()); for (IndexWarmersMetaData.Entry warmerEntry : indexEntry.value) { out.writeString(warmerEntry.name()); out.writeStringArray(warmerEntry.types()); out.writeBytesReference(warmerEntry.source()); out.writeOptionalBoolean(warmerEntry.requestCache()); } } }
Example 17
Source File: IndicesExistsRequest.java From Elasticsearch with Apache License 2.0 | 4 votes |
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeStringArray(indices); indicesOptions.writeIndicesOptions(out); }
Example 18
Source File: SnapshotsStatusRequest.java From Elasticsearch with Apache License 2.0 | 4 votes |
@Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeString(repository); out.writeStringArray(snapshots); }
Example 19
Source File: ExtendedAnalyzeResponse.java From elasticsearch-extended-analyze with Apache License 2.0 | 4 votes |
@Override public void writeTo(StreamOutput out) throws IOException { out.writeString(name); out.writeStringArray(texts.toArray(Strings.EMPTY_ARRAY)); }
Example 20
Source File: DiffableUtils.java From crate with Apache License 2.0 | 4 votes |
@Override public void write(Set<String> value, StreamOutput out) throws IOException { out.writeStringArray(value.toArray(new String[value.size()])); }