當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。