当前位置: 首页>>代码示例>>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;未经允许,请勿转载。