Class PairOutputs<A, B>
An FST Outputs<T> implementation, holding two other outputs.
Note
This API is experimental and might change in incompatible ways in the next release.
Inheritance
PairOutputs<A, B>
Assembly: Lucene.Net.dll
Syntax
public class PairOutputs<A, B> : Outputs<PairOutputs<A, B>.Pair> where A : class where B : class
Type Parameters
Constructors
PairOutputs(Outputs<A>, Outputs<B>)
An FST Outputs<T> implementation, holding two other outputs.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public PairOutputs(Outputs<A> outputs1, Outputs<B> outputs2)
Parameters
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 PairOutputs<A, B>.Pair NoOutput { get; }
Property Value
Overrides
Methods
Add(Pair, Pair)
Eg add("foo", "bar") -> "foobar"
Declaration
public override PairOutputs<A, B>.Pair Add(PairOutputs<A, B>.Pair prefix, PairOutputs<A, B>.Pair output)
Parameters
Returns
Overrides
Common(Pair, Pair)
Eg common("foobar", "food") -> "foo"
Declaration
public override PairOutputs<A, B>.Pair Common(PairOutputs<A, B>.Pair pair1, PairOutputs<A, B>.Pair pair2)
Parameters
Returns
Overrides
NewPair(A, B)
Declaration
public virtual PairOutputs<A, B>.Pair NewPair(A a, B b)
Parameters
Type |
Name |
Description |
A |
a |
|
B |
b |
|
Returns
OutputToString(Pair)
An FST Outputs<T> implementation, holding two other outputs.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public override string OutputToString(PairOutputs<A, B>.Pair output)
Parameters
Returns
Overrides
Declaration
public override PairOutputs<A, B>.Pair Read(DataInput @in)
Parameters
Returns
Overrides
Subtract(Pair, Pair)
Eg subtract("foobar", "foo") -> "bar"
Declaration
public override PairOutputs<A, B>.Pair Subtract(PairOutputs<A, B>.Pair output, PairOutputs<A, B>.Pair inc)
Parameters
Returns
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(Pair, DataOutput)
Declaration
public override void Write(PairOutputs<A, B>.Pair output, DataOutput writer)
Parameters
Overrides