Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class PositiveInt32Outputs

    An FST Outputs<T> implementation where each output is a non-negative J2N.Numerics.Int64 value.

    NOTE: This was PositiveIntOutputs in Lucene

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    Outputs<Int64>
    PositiveInt32Outputs
    Inherited Members
    Outputs<Int64>.WriteFinalOutput(Int64, DataOutput)
    Outputs<Int64>.ReadFinalOutput(DataInput)
    Outputs<Int64>.Merge(Int64, Int64)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Util.Fst
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class PositiveInt32Outputs : Outputs<Int64>

    Properties

    NoOutput

    NOTE: this output is compared with == so you must ensure that all methods return the single object if it's really no output

    Declaration
    public override Int64 NoOutput { get; }
    Property Value
    Type Description
    Int64
    Overrides
    Outputs<Int64>.NoOutput

    Singleton

    An FST Outputs<T> implementation where each output is a non-negative J2N.Numerics.Int64 value.

    NOTE: This was PositiveIntOutputs in Lucene

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    public static PositiveInt32Outputs Singleton { get; }
    Property Value
    Type Description
    PositiveInt32Outputs

    Methods

    Add(Int64, Int64)

    Eg add("foo", "bar") -> "foobar"

    Declaration
    public override Int64 Add(Int64 prefix, Int64 output)
    Parameters
    Type Name Description
    Int64 prefix
    Int64 output
    Returns
    Type Description
    Int64
    Overrides
    Outputs<Int64>.Add(Int64, Int64)

    Common(Int64, Int64)

    Eg common("foobar", "food") -> "foo"

    Declaration
    public override Int64 Common(Int64 output1, Int64 output2)
    Parameters
    Type Name Description
    Int64 output1
    Int64 output2
    Returns
    Type Description
    Int64
    Overrides
    Outputs<Int64>.Common(Int64, Int64)

    OutputToString(Int64)

    An FST Outputs<T> implementation where each output is a non-negative J2N.Numerics.Int64 value.

    NOTE: This was PositiveIntOutputs in Lucene

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    public override string OutputToString(Int64 output)
    Parameters
    Type Name Description
    Int64 output
    Returns
    Type Description
    string
    Overrides
    Outputs<Int64>.OutputToString(Int64)

    Read(DataInput)

    Decode an output value previously written with Write(T, DataOutput).

    Declaration
    public override Int64 Read(DataInput @in)
    Parameters
    Type Name Description
    DataInput in
    Returns
    Type Description
    Int64
    Overrides
    Outputs<Int64>.Read(DataInput)

    Subtract(Int64, Int64)

    Eg subtract("foobar", "foo") -> "bar"

    Declaration
    public override Int64 Subtract(Int64 output, Int64 inc)
    Parameters
    Type Name Description
    Int64 output
    Int64 inc
    Returns
    Type Description
    Int64
    Overrides
    Outputs<Int64>.Subtract(Int64, Int64)

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()

    Write(Int64, DataOutput)

    Encode an output value into a DataOutput.

    Declaration
    public override void Write(Int64 output, DataOutput @out)
    Parameters
    Type Name Description
    Int64 output
    DataOutput out
    Overrides
    Outputs<Int64>.Write(Int64, DataOutput)
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.