当前位置: 首页>>代码示例>>Java>>正文


Java StreamInput.readStringArray方法代码示例

本文整理汇总了Java中org.elasticsearch.common.io.stream.StreamInput.readStringArray方法的典型用法代码示例。如果您正苦于以下问题:Java StreamInput.readStringArray方法的具体用法?Java StreamInput.readStringArray怎么用?Java StreamInput.readStringArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.elasticsearch.common.io.stream.StreamInput的用法示例。


在下文中一共展示了StreamInput.readStringArray方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    type = in.readString();
    id = in.readString();
    routing = in.readOptionalString();
    preference = in.readOptionalString();
    source = in.readBytesReference();
    filteringAlias = in.readStringArray();
    if (in.readBoolean()) {
        fields = in.readStringArray();
    }

    fetchSourceContext = FetchSourceContext.optionalReadFromStream(in);
    nowInMillis = in.readVLong();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:17,代码来源:ExplainRequest.java

示例2: innerReadFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
protected void innerReadFrom(StreamInput in) throws IOException {
    index = in.readString();
    shardId = in.readVInt();
    searchType = SearchType.fromId(in.readByte());
    numberOfShards = in.readVInt();
    if (in.readBoolean()) {
        scroll = readScroll(in);
    }

    source = in.readBytesReference();
    extraSource = in.readBytesReference();

    types = in.readStringArray();
    filteringAliases = in.readStringArray();
    nowInMillis = in.readVLong();

    templateSource = in.readBytesReference();
    if (in.readBoolean()) {
        template = Template.readTemplate(in);
    }
    requestCache = in.readOptionalBoolean();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:24,代码来源:ShardSearchLocalRequest.java

示例3: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public IndexWarmersMetaData readFrom(StreamInput in) throws IOException {
    Entry[] entries = new Entry[in.readVInt()];
    for (int i = 0; i < entries.length; i++) {
        String name = in.readString();
        String[] types = in.readStringArray();
        BytesReference source = null;
        if (in.readBoolean()) {
            source = in.readBytesReference();
        }
        Boolean queryCache;
        queryCache = in.readOptionalBoolean();
        entries[i] = new Entry(name, types, queryCache, source);
    }
    return new IndexWarmersMetaData(entries);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:17,代码来源:IndexWarmersMetaData.java

示例4: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    final long longFlags = in.readLong();
    flags.clear();
    for (Flag flag : Flag.values()) {
        if ((longFlags & (1 << flag.ordinal())) != 0) {
            flags.add(flag);
        }
    }
    types = in.readStringArray();
    groups = in.readStringArray();
    fieldDataFields = in.readStringArray();
    completionDataFields = in.readStringArray();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:15,代码来源:CommonStatsFlags.java

示例5: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    fields = in.readStringArray();
    int size = in.readVInt();
    indexConstraints = new IndexConstraint[size];
    for (int i = 0; i < size; i++) {
        indexConstraints[i] = new IndexConstraint(in);
    }
    level = in.readString();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:12,代码来源:FieldStatsRequest.java

示例6: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    taskId = new TaskId(in);
    parentTaskId = new TaskId(in);
    nodesIds = in.readStringArray();
    actions = in.readStringArray();
    if (in.readBoolean()) {
        timeout = TimeValue.readTimeValue(in);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:12,代码来源:BaseTasksRequest.java

示例7: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    names = in.readStringArray();
    indices = in.readStringArray();
    indicesOptions = IndicesOptions.readIndicesOptions(in);
    readTimeout(in);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:9,代码来源:DeleteWarmerRequest.java

示例8: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    repository = in.readString();
    snapshots = in.readStringArray();
    ignoreUnavailable = in.readBoolean();
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:GetSnapshotsRequest.java

示例9: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    indices = in.readStringArray();
    indicesOptions = IndicesOptions.readIndicesOptions(in);
    timeout = readTimeValue(in);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:8,代码来源:DeleteIndexRequest.java

示例10: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    routingTable = in.readBoolean();
    nodes = in.readBoolean();
    metaData = in.readBoolean();
    blocks = in.readBoolean();
    customs = in.readBoolean();
    indices = in.readStringArray();
    indicesOptions = IndicesOptions.readIndicesOptions(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:12,代码来源:ClusterStateRequest.java

示例11: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    index = in.readString();
    types = in.readStringArray();
    nodeId = in.readString();
    indexUUID = in.readString();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:9,代码来源:NodeMappingRefreshAction.java

示例12: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    indices = in.readStringArray();
    types = in.readStringArray();
    indicesOptions = IndicesOptions.readIndicesOptions(in);
    local = in.readBoolean();
    fields = in.readStringArray();
    includeDefaults = in.readBoolean();
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:GetFieldMappingsRequest.java

示例13: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    nodesIds = in.readStringArray();
    if (in.readBoolean()) {
        timeout = TimeValue.readTimeValue(in);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:9,代码来源:BaseNodesRequest.java

示例14: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    indices = in.readStringArray();
    readTimeout(in);
    indicesOptions = IndicesOptions.readIndicesOptions(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:CloseIndexRequest.java

示例15: readFrom

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    minScore = in.readFloat();
    routing = in.readOptionalString();
    preference = in.readOptionalString();
    source = in.readBytesReference();
    types = in.readStringArray();

}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:11,代码来源:ExistsRequest.java


注:本文中的org.elasticsearch.common.io.stream.StreamInput.readStringArray方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。