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


Java StreamOutput.writeOptionalVInt方法代码示例

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


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

示例1: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(field);
    out.writeOptionalString(suggestMode);
    out.writeOptionalFloat(accuracy);
    out.writeOptionalVInt(size);
    out.writeOptionalString(sort);
    out.writeOptionalString(stringDistance);
    out.writeOptionalVInt(maxEdits);
    out.writeOptionalVInt(maxInspections);
    out.writeOptionalFloat(maxTermFreq);
    out.writeOptionalVInt(prefixLength);
    out.writeOptionalVInt(minWordLength);
    out.writeOptionalFloat(minDocFreq);
    out.writeOptionalString(preFilter);
    out.writeOptionalString(postFilter);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:18,代码来源:DirectCandidateGeneratorBuilder.java

示例2: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    if (out.getVersion().onOrAfter(Version.V_5_1_1_UNRELEASED)) {
        out.writeOptionalVInt(sliceId);
    }
    out.writeVLong(total);
    out.writeVLong(updated);
    out.writeVLong(created);
    out.writeVLong(deleted);
    out.writeVInt(batches);
    out.writeVLong(versionConflicts);
    out.writeVLong(noops);
    out.writeVLong(bulkRetries);
    out.writeVLong(searchRetries);
    throttled.writeTo(out);
    out.writeFloat(requestsPerSecond);
    out.writeOptionalString(reasonCancelled);
    throttledUntil.writeTo(out);
    if (out.getVersion().onOrAfter(Version.V_5_1_1_UNRELEASED)) {
        out.writeVInt(sliceStatuses.size());
        for (StatusOrException sliceStatus : sliceStatuses) {
            out.writeOptionalWriteable(sliceStatus);
        }
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:26,代码来源:BulkByScrollTask.java

示例3: doWriteTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void doWriteTo(StreamOutput out) throws IOException {
    out.writeFloat(maxErrors);
    out.writeFloat(realWordErrorLikelihood);
    out.writeFloat(confidence);
    out.writeOptionalVInt(gramSize);
    out.writeOptionalNamedWriteable(model);
    out.writeBoolean(forceUnigrams);
    out.writeVInt(tokenLimit);
    out.writeOptionalString(preTag);
    out.writeOptionalString(postTag);
    out.writeString(separator);
    if (collateQuery != null) {
        out.writeBoolean(true);
        collateQuery.writeTo(out);
    } else {
        out.writeBoolean(false);
    }
    out.writeMapWithConsistentOrder(collateParams);
    out.writeOptionalBoolean(collatePrune);
    out.writeVInt(this.generators.size());
    for (Entry<String, List<CandidateGenerator>> entry : this.generators.entrySet()) {
        out.writeString(entry.getKey());
        List<CandidateGenerator> generatorsList = entry.getValue();
        out.writeVInt(generatorsList.size());
        for (CandidateGenerator generator : generatorsList) {
            generator.writeTo(out);
        }
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:31,代码来源:PhraseSuggestionBuilder.java

示例4: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public final void writeTo(StreamOutput out) throws IOException {
    out.writeString(field);
    out.writeOptionalString(text);
    out.writeOptionalString(prefix);
    out.writeOptionalString(regex);
    out.writeOptionalString(analyzer);
    out.writeOptionalVInt(size);
    out.writeOptionalVInt(shardSize);
    doWriteTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:12,代码来源:SuggestionBuilder.java

示例5: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    out.writeString(term);
    out.writeInt(startOffset);
    out.writeInt(endOffset);
    out.writeVInt(position);
    if (out.getVersion().onOrAfter(Version.V_5_2_0_UNRELEASED)) {
        out.writeOptionalVInt(positionLength > 1 ? positionLength : null);
    }
    out.writeOptionalString(type);
    if (out.getVersion().onOrAfter(Version.V_2_2_0)) {
        out.writeGenericValue(attributes);
    }
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:15,代码来源:AnalyzeResponse.java

示例6: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
@Override
public void writeTo(StreamOutput out) throws IOException {
    checkVersion(out.getVersion());
    super.writeTo(out);
    out.writeOptionalString(index);
    out.writeOptionalVInt(shard);
    out.writeOptionalBoolean(primary);
    out.writeOptionalString(currentNode);
    out.writeBoolean(includeYesDecisions);
    out.writeBoolean(includeDiskInfo);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:12,代码来源:ClusterAllocationExplainRequest.java

示例7: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
public void writeTo(StreamOutput out) throws IOException {
    out.writeOptionalVInt(maxNumTerms);
    out.writeOptionalVInt(minTermFreq);
    out.writeOptionalVInt(maxTermFreq);
    out.writeOptionalVInt(minDocFreq);
    out.writeOptionalVInt(maxDocFreq);
    out.writeOptionalVInt(minWordLength);
    out.writeOptionalVInt(maxWordLength);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:10,代码来源:TermVectorsRequest.java

示例8: writeTo

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

示例9: writeTo

import org.elasticsearch.common.io.stream.StreamOutput; //导入方法依赖的package包/类
/**
 * write common parameters to {@link StreamOutput}
 */
@Override
public final void writeTo(StreamOutput out) throws IOException {
    out.writeOptionalStringArray(preTags);
    out.writeOptionalStringArray(postTags);
    out.writeOptionalVInt(fragmentSize);
    out.writeOptionalVInt(numOfFragments);
    out.writeOptionalString(highlighterType);
    out.writeOptionalString(fragmenter);
    boolean hasQuery = highlightQuery != null;
    out.writeBoolean(hasQuery);
    if (hasQuery) {
        out.writeNamedWriteable(highlightQuery);
    }
    out.writeOptionalWriteable(order);
    out.writeOptionalBoolean(highlightFilter);
    out.writeOptionalBoolean(forceSource);
    if (out.getVersion().onOrAfter(Version.V_5_4_0_UNRELEASED)) {
        out.writeOptionalWriteable(boundaryScannerType);
    }
    out.writeOptionalVInt(boundaryMaxScan);
    boolean hasBounaryChars = boundaryChars != null;
    out.writeBoolean(hasBounaryChars);
    if (hasBounaryChars) {
        out.writeString(String.valueOf(boundaryChars));
    }
    if (out.getVersion().onOrAfter(Version.V_5_4_0_UNRELEASED)) {
        boolean hasBoundaryScannerLocale = boundaryScannerLocale != null;
        out.writeBoolean(hasBoundaryScannerLocale);
        if (hasBoundaryScannerLocale) {
            out.writeString(boundaryScannerLocale.toLanguageTag());
        }
    }
    out.writeOptionalVInt(noMatchSize);
    out.writeOptionalVInt(phraseLimit);
    boolean hasOptions = options != null;
    out.writeBoolean(hasOptions);
    if (hasOptions) {
        out.writeMap(options);
    }
    out.writeOptionalBoolean(requireFieldMatch);
    doWriteTo(out);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:46,代码来源:AbstractHighlighterBuilder.java

示例10: writeTo

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


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