當前位置: 首頁>>代碼示例>>Java>>正文


Java StreamOutput.writeStringArray方法代碼示例

本文整理匯總了Java中org.elasticsearch.common.io.stream.StreamOutput.writeStringArray方法的典型用法代碼示例。如果您正苦於以下問題:Java StreamOutput.writeStringArray方法的具體用法?Java StreamOutput.writeStringArray怎麽用?Java StreamOutput.writeStringArray使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.elasticsearch.common.io.stream.StreamOutput的用法示例。


在下文中一共展示了StreamOutput.writeStringArray方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@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);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:18,代碼來源:RestoreSnapshotRequest.java

示例2: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@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);

    if (out.getVersion().onOrBefore(Version.V_5_1_1_UNRELEASED)) {
        //types
        out.writeStringArray(Strings.EMPTY_ARRAY);
    }
    indicesOptions.writeIndicesOptions(out);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:19,代碼來源:ClusterSearchShardsRequest.java

示例3: innerWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
protected void innerWriteTo(StreamOutput out, boolean asKey) throws IOException {
    shardId.writeTo(out);
    out.writeByte(searchType.id());
    if (!asKey) {
        out.writeVInt(numberOfShards);
    }
    out.writeOptionalWriteable(scroll);
    out.writeOptionalWriteable(source);
    out.writeStringArray(types);
    aliasFilter.writeTo(out);
    if (out.getVersion().onOrAfter(Version.V_5_2_0_UNRELEASED)) {
        out.writeFloat(indexBoost);
    }
    if (!asKey) {
        out.writeVLong(nowInMillis);
    }
    out.writeOptionalBoolean(requestCache);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:19,代碼來源:ShardSearchLocalRequest.java

示例4: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeLong(pid);
    out.writeString(version);
    out.writeString(vmName);
    out.writeString(vmVersion);
    out.writeString(vmVendor);
    out.writeLong(startTime);
    out.writeInt(inputArguments.length);
    for (String inputArgument : inputArguments) {
        out.writeString(inputArgument);
    }
    out.writeString(bootClassPath);
    out.writeString(classPath);
    out.writeInt(systemProperties.size());
    for (Map.Entry<String, String> entry : systemProperties.entrySet()) {
        out.writeString(entry.getKey());
        out.writeString(entry.getValue());
    }
    mem.writeTo(out);
    out.writeStringArray(gcCollectors);
    out.writeStringArray(memoryPools);
    if (out.getVersion().onOrAfter(Version.V_2_2_0)) {
        out.writeOptionalString(useCompressedOops);
    }
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:27,代碼來源:JvmInfo.java

示例5: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeStringArray(types);
    out.writeStringArray(fields);
    out.writeBoolean(includeDefaults);
    out.writeBoolean(probablySingleFieldRequest);
    OriginalIndices.writeOriginalIndices(originalIndices, out);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:10,代碼來源:GetFieldMappingsIndexRequest.java

示例6: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeStringArray(indices);
    indicesOptions.writeIndicesOptions(out);
    out.writeStringArray(names);
    out.writeBoolean(humanReadable);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:9,代碼來源:GetSettingsRequest.java

示例7: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeStringArray(indices);
    out.writeStringArray(types);
    indicesOptions.writeIndicesOptions(out);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:8,代碼來源:TypesExistsRequest.java

示例8: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeString(index);
    out.writeStringArray(types);
    out.writeString(nodeId);
    out.writeString(indexUUID);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:9,代碼來源:NodeMappingRefreshAction.java

示例9: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeFloat(minScore);
    out.writeOptionalString(routing);
    out.writeOptionalString(preference);
    out.writeBytesReference(source);
    out.writeStringArray(types);

}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:11,代碼來源:ExistsRequest.java

示例10: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@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());
        }
    }
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:16,代碼來源:GetWarmersResponse.java

示例11: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@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()]));
    }
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:10,代碼來源:ClearScrollRequest.java

示例12: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeBoolean(routingTable);
    out.writeBoolean(nodes);
    out.writeBoolean(metaData);
    out.writeBoolean(blocks);
    out.writeBoolean(customs);
    out.writeStringArray(indices);
    indicesOptions.writeIndicesOptions(out);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:12,代碼來源:ClusterStateRequest.java

示例13: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeStringArray(indices);
    writeTimeout(out);
    indicesOptions.writeIndicesOptions(out);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:8,代碼來源:CloseIndexRequest.java

示例14: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeStringArray(names);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:6,代碼來源:IndexWarmerMissingException.java

示例15: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeStringArray(ids);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:6,代碼來源:GetPipelineRequest.java


注:本文中的org.elasticsearch.common.io.stream.StreamOutput.writeStringArray方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。