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


Java StreamOutput.writeString方法代码示例

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


在下文中一共展示了StreamOutput.writeString方法的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(index);
    out.writeString(type);
    out.writeString(id);
    out.writeBoolean(exists);
    if (explanation == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        writeExplanation(out, explanation);
    }
    if (getResult == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        getResult.writeTo(out);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:21,代码来源:ExplainResponse.java

示例2: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeString(type);
    out.writeString(id);
    out.writeOptionalString(routing);
    out.writeOptionalString(parent);
    out.writeOptionalString(preference);

    out.writeBoolean(refresh);
    out.writeOptionalStringArray(storedFields);
    out.writeBoolean(realtime);
    out.writeByte(versionType.getValue());
    out.writeLong(version);
    out.writeOptionalWriteable(fetchSourceContext);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:17,代码来源:GetRequest.java

示例3: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeFloat(minScore);

    out.writeBytesReference(querySource);

    out.writeVInt(types.length);
    for (String type : types) {
        out.writeString(type);
    }
    if (filteringAliases != null) {
        out.writeVInt(filteringAliases.length);
        for (String alias : filteringAliases) {
            out.writeString(alias);
        }
    } else {
        out.writeVInt(0);
    }
    out.writeVLong(nowInMillis);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:22,代码来源:ShardExistsRequest.java

示例4: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeBytesReference(source);

    out.writeVInt(types.length);
    for (String type : types) {
        out.writeString(type);
    }
    if (filteringAliases != null) {
        out.writeVInt(filteringAliases.length);
        for (String alias : filteringAliases) {
            out.writeString(alias);
        }
    } else {
        out.writeVInt(0);
    }

    out.writeBoolean(explain);
    out.writeBoolean(rewrite);
    out.writeVLong(nowInMillis);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:23,代码来源:ShardValidateQueryRequest.java

示例5: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
protected void doWriteTo(StreamOutput out) throws IOException {
    out.writeGenericValue(value);
    out.writeVInt(fieldsBoosts.size());
    for (Map.Entry<String, Float> fieldsEntry : fieldsBoosts.entrySet()) {
        out.writeString(fieldsEntry.getKey());
        out.writeFloat(fieldsEntry.getValue());
    }
    type.writeTo(out);
    operator.writeTo(out);
    out.writeOptionalString(analyzer);
    out.writeVInt(slop);
    out.writeOptionalWriteable(fuzziness);
    out.writeVInt(prefixLength);
    out.writeVInt(maxExpansions);
    out.writeOptionalString(minimumShouldMatch);
    out.writeOptionalString(fuzzyRewrite);
    out.writeOptionalBoolean(useDisMax);
    out.writeOptionalFloat(tieBreaker);
    out.writeBoolean(lenient);
    out.writeOptionalFloat(cutoffFrequency);
    zeroTermsQuery.writeTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:24,代码来源:MultiMatchQueryBuilder.java

示例6: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeString(clusterName);
    out.writeByte(clusterHealthStatus.value());
    clusterStateHealth.writeTo(out);
    out.writeInt(numberOfPendingTasks);
    out.writeBoolean(timedOut);
    out.writeInt(numberOfInFlightFetch);
    out.writeInt(delayedUnassignedShards);
    taskMaxWaitingTime.writeTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:ClusterHealthResponse.java

示例7: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    if (index == null) {
        out.writeBoolean(false);
    } else {
        out.writeBoolean(true);
        out.writeString(index);
    }
    out.writeVInt(shardId);
    out.writeException(reason);
    RestStatus.writeTo(out, status);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:DefaultShardOperationFailedException.java

示例8: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeLong(recoveryId);
    shardId.writeTo(out);

    out.writeVInt(phase1FileNames.size());
    for (String phase1FileName : phase1FileNames) {
        out.writeString(phase1FileName);
    }

    out.writeVInt(phase1FileSizes.size());
    for (Long phase1FileSize : phase1FileSizes) {
        out.writeVLong(phase1FileSize);
    }

    out.writeVInt(phase1ExistingFileNames.size());
    for (String phase1ExistingFileName : phase1ExistingFileNames) {
        out.writeString(phase1ExistingFileName);
    }

    out.writeVInt(phase1ExistingFileSizes.size());
    for (Long phase1ExistingFileSize : phase1ExistingFileSizes) {
        out.writeVLong(phase1ExistingFileSize);
    }
    out.writeVInt(totalTranslogOps);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:28,代码来源:RecoveryFilesInfoRequest.java

示例9: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    shardId.writeTo(out);
    out.writeString(allocationId);
    out.writeVLong(primaryTerm);
    out.writeString(message);
    out.writeException(failure);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:ShardStateAction.java

示例10: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);

    out.writeString(lang == null ? "" : lang);
    out.writeString(id);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:GetStoredScriptRequest.java

示例11: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    out.writeString(type);
    out.writeString(id);
    out.writeOptionalString(routing());
    out.writeOptionalString(parent());
    out.writeLong(version);
    out.writeByte(versionType.getValue());
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:11,代码来源:DeleteRequest.java

示例12: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(name);
    out.writeOptionalString(filter);
    out.writeOptionalString(indexRouting);
    out.writeOptionalString(searchRouting);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:8,代码来源:Alias.java

示例13: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(status);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:5,代码来源:TransportTasksActionTests.java

示例14: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeVLong(interval);
    out.writeString(timeZone.getID());
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:6,代码来源:TimeZoneRounding.java

示例15: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    super.writeTo(out);
    shrinkIndexRequest.writeTo(out);
    out.writeString(sourceIndex);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:7,代码来源:ShrinkRequest.java


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