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


Java StreamOutput.writeStringArrayNullable方法代碼示例

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


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

示例1: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeStringArrayNullable(fields);
    out.writeVInt(indexConstraints.length);
    for (IndexConstraint indexConstraint : indexConstraints) {
        out.writeString(indexConstraint.getField());
        out.writeByte(indexConstraint.getProperty().getId());
        out.writeByte(indexConstraint.getComparison().getId());
        out.writeString(indexConstraint.getValue());
        if (out.getVersion().onOrAfter(Version.V_2_0_1)) {
            out.writeOptionalString(indexConstraint.getOptionalFormat());
        }
    }
    out.writeString(level);
    out.writeBoolean(useCache);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:18,代碼來源:FieldStatsRequest.java

示例2: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeStringArrayNullable(fields);
    out.writeVInt(indexConstraints.length);
    for (IndexConstraint indexConstraint : indexConstraints) {
        out.writeString(indexConstraint.getField());
        out.writeByte(indexConstraint.getProperty().getId());
        out.writeByte(indexConstraint.getComparison().getId());
        out.writeString(indexConstraint.getValue());
        if (out.getVersion().onOrAfter(Version.V_2_0_1)) {
            out.writeOptionalString(indexConstraint.getOptionalFormat());
        }
    }
    out.writeString(level);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:17,代碼來源:FieldStatsRequest.java

示例3: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeStringArrayNullable(indices);
    indicesOptions.writeIndicesOptions(out);
    out.writeOptionalString(type);
    out.writeString(source);
    out.writeBoolean(updateAllTypes);
    writeTimeout(out);
    out.writeOptionalWriteable(concreteIndex);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:12,代碼來源:PutMappingRequest.java

示例4: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    long longFlags = 0;
    for (Flag flag : flags) {
        longFlags |= (1 << flag.ordinal());
    }
    out.writeLong(longFlags);

    out.writeStringArrayNullable(types);
    out.writeStringArrayNullable(groups);
    out.writeStringArrayNullable(fieldDataFields);
    out.writeStringArrayNullable(completionDataFields);
    out.writeBoolean(includeSegmentFileSizes);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:15,代碼來源:CommonStatsFlags.java

示例5: writeTo

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

示例6: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeStringArrayNullable(indices);
    indicesOptions.writeIndicesOptions(out);
    writeSettingsToStream(settings, out);
    writeTimeout(out);
    out.writeBoolean(preserveExisting);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:10,代碼來源:UpdateSettingsRequest.java

示例7: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeStringArrayNullable(indices);
    out.writeVInt(statuses.size());
    for (ClusterHealthStatus status : statuses) {
        out.writeByte(status.value());
    }
    indicesOptions.writeIndicesOptions(out);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:11,代碼來源:IndicesShardStoresRequest.java

示例8: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeStringArrayNullable(nodesIds);
    if (timeout == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        timeout.writeTo(out);
    }
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:12,代碼來源:BaseNodesRequest.java

示例9: writeTo

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

示例10: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeStringArrayNullable(indices);
    out.writeOptionalString(documentType);
    indicesOptions.writeIndicesOptions(out);
    out.writeVInt(requests.size());
    for (PercolateRequest request : requests) {
        request.writeTo(out);
    }
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:12,代碼來源:MultiPercolateRequest.java

示例11: writeTo

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

示例12: writeTo

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

示例13: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
@Override
public void writeTo(StreamOutput out) throws IOException {
    long longFlags = 0;
    for (Flag flag : flags) {
        longFlags |= (1 << flag.ordinal());
    }
    out.writeLong(longFlags);

    out.writeStringArrayNullable(types);
    out.writeStringArrayNullable(groups);
    out.writeStringArrayNullable(fieldDataFields);
    out.writeStringArrayNullable(completionDataFields);
}
 
開發者ID:baidu,項目名稱:Elasticsearch,代碼行數:14,代碼來源:CommonStatsFlags.java

示例14: writeTo

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

示例15: writeOriginalIndices

import org.elasticsearch.common.io.stream.StreamOutput; //導入方法依賴的package包/類
public static void writeOriginalIndices(OriginalIndices originalIndices, StreamOutput out) throws IOException {
    out.writeStringArrayNullable(originalIndices.indices);
    originalIndices.indicesOptions.writeIndicesOptions(out);
}
 
開發者ID:justor,項目名稱:elasticsearch_my,代碼行數:5,代碼來源:OriginalIndices.java


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