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