Class Outputs<T>
Represents the outputs for an FST, providing the basic algebra required for building and traversing the FST.
Note that any operation that returns NO_OUTPUT must return the same singleton object from NoOutput.
@lucene.experimental
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class Outputs<T> : object
Type Parameters
Name | Description |
---|---|
T |
Properties
Name | Description |
---|---|
NoOutput | NOTE: this output is compared with == so you must ensure that all methods return the single object if it's really no output |
Methods
Name | Description |
---|---|
Add(T, T) | Eg add("foo", "bar") -> "foobar" |
Common(T, T) | Eg common("foobar", "food") -> "foo" |
Merge(T, T) | |
OutputToString(T) | |
Read(DataInput) | Decode an output value previously written with Write(T, DataOutput). |
ReadFinalOutput(DataInput) | Decode an output value previously written with WriteFinalOutput(T, DataOutput). By default this just calls Read(DataInput). |
Subtract(T, T) | Eg subtract("foobar", "foo") -> "bar" |
Write(T, DataOutput) | Encode an output value into a DataOutput. |
WriteFinalOutput(T, DataOutput) | Encode an final node output value into a DataOutput. By default this just calls Write(T, DataOutput). |