Show / Hide Table of Contents

    Class NumericUtils.Int32RangeBuilder

    Callback for SplitInt32Range(NumericUtils.Int32RangeBuilder, Int32, Int32, Int32). You need to override only one of the methods.

    NOTE: This was IntRangeBuilder in Lucene

    @lucene.internal @since 2.9, API changed non backwards-compliant in 4.0

    Inheritance
    System.Object
    NumericUtils.Int32RangeBuilder
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class Int32RangeBuilder : object

    Methods

    | Improve this Doc View Source

    AddRange(BytesRef, BytesRef)

    Override this method, if you like to receive the already prefix encoded range bounds. You can directly build classical range (inclusive) queries from them.

    Declaration
    public virtual void AddRange(BytesRef minPrefixCoded, BytesRef maxPrefixCoded)
    Parameters
    Type Name Description
    BytesRef minPrefixCoded
    BytesRef maxPrefixCoded
    | Improve this Doc View Source

    AddRange(Int32, Int32, Int32)

    Override this method, if you like to receive the raw int range bounds. You can use this for e.g. debugging purposes (print out range bounds).

    Declaration
    public virtual void AddRange(int min, int max, int shift)
    Parameters
    Type Name Description
    System.Int32 min
    System.Int32 max
    System.Int32 shift
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)