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


Java StreamInput.readOptionalFloat方法代码示例

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


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

示例1: DirectCandidateGeneratorBuilder

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public DirectCandidateGeneratorBuilder(StreamInput in) throws IOException {
    field = in.readString();
    suggestMode = in.readOptionalString();
    accuracy = in.readOptionalFloat();
    size = in.readOptionalVInt();
    sort = in.readOptionalString();
    stringDistance = in.readOptionalString();
    maxEdits = in.readOptionalVInt();
    maxInspections = in.readOptionalVInt();
    maxTermFreq = in.readOptionalFloat();
    prefixLength = in.readOptionalVInt();
    minWordLength = in.readOptionalVInt();
    minDocFreq = in.readOptionalFloat();
    preFilter = in.readOptionalString();
    postFilter = in.readOptionalString();
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:20,代码来源:DirectCandidateGeneratorBuilder.java

示例2: MultiMatchQueryBuilder

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public MultiMatchQueryBuilder(StreamInput in) throws IOException {
    super(in);
    value = in.readGenericValue();
    int size = in.readVInt();
    fieldsBoosts = new TreeMap<>();
    for (int i = 0; i < size; i++) {
        fieldsBoosts.put(in.readString(), in.readFloat());
    }
    type = Type.readFromStream(in);
    operator = Operator.readFromStream(in);
    analyzer = in.readOptionalString();
    slop = in.readVInt();
    fuzziness = in.readOptionalWriteable(Fuzziness::new);
    prefixLength = in.readVInt();
    maxExpansions = in.readVInt();
    minimumShouldMatch = in.readOptionalString();
    fuzzyRewrite = in.readOptionalString();
    useDisMax = in.readOptionalBoolean();
    tieBreaker = in.readOptionalFloat();
    lenient = in.readBoolean();
    cutoffFrequency = in.readOptionalFloat();
    zeroTermsQuery = MatchQuery.ZeroTermsQuery.readFromStream(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:27,代码来源:MultiMatchQueryBuilder.java

示例3: MatchQueryBuilder

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public MatchQueryBuilder(StreamInput in) throws IOException {
    super(in);
    fieldName = in.readString();
    value = in.readGenericValue();
    type = MatchQuery.Type.readFromStream(in);
    operator = Operator.readFromStream(in);
    slop = in.readVInt();
    prefixLength = in.readVInt();
    maxExpansions = in.readVInt();
    fuzzyTranspositions = in.readBoolean();
    lenient = in.readBoolean();
    zeroTermsQuery = MatchQuery.ZeroTermsQuery.readFromStream(in);
    // optional fields
    analyzer = in.readOptionalString();
    minimumShouldMatch = in.readOptionalString();
    fuzzyRewrite = in.readOptionalString();
    fuzziness = in.readOptionalWriteable(Fuzziness::new);
    cutoffFrequency = in.readOptionalFloat();
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:23,代码来源:MatchQueryBuilder.java

示例4: FunctionScoreQueryBuilder

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public FunctionScoreQueryBuilder(StreamInput in) throws IOException {
    super(in);
    query = in.readNamedWriteable(QueryBuilder.class);
    filterFunctionBuilders = in.readList(FilterFunctionBuilder::new).toArray(new FilterFunctionBuilder[0]);
    maxBoost = in.readFloat();
    minScore = in.readOptionalFloat();
    boostMode = in.readOptionalWriteable(CombineFunction::readFromStream);
    scoreMode = FiltersFunctionScoreQuery.ScoreMode.readFromStream(in);
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:13,代码来源:FunctionScoreQueryBuilder.java

示例5: ScoreFunctionBuilder

import org.elasticsearch.common.io.stream.StreamInput; //导入方法依赖的package包/类
/**
 * Read from a stream.
 */
public ScoreFunctionBuilder(StreamInput in) throws IOException {
    weight = in.readOptionalFloat();
}
 
开发者ID:justor,项目名称:elasticsearch_my,代码行数:7,代码来源:ScoreFunctionBuilder.java


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