Class PositiveInt32Outputs
An FST Outputs<T> implementation where each output is a non-negative J2N.Numerics.Int64 value.
NOTE: This was PositiveIntOutputs in LuceneNote
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
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
Singleton
An FST Outputs<T> implementation where each output is a non-negative J2N.Numerics.Int64 value.
NOTE: This was PositiveIntOutputs in LuceneNote
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
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
OutputToString(Int64)
An FST Outputs<T> implementation where each output is a non-negative J2N.Numerics.Int64 value.
NOTE: This was PositiveIntOutputs in LuceneNote
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
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
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
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
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 |