NoOutputs

A null FST Outputs implementation; use this if you just want to build an FSA.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val noOutput: Any

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

Functions

Link copied to clipboard
open override fun add(prefix: Any, output: Any): Any

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

Link copied to clipboard
open override fun common(output1: Any, output2: Any): Any

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

Link copied to clipboard
fun merge(first: Any, second: Any): Any
Link copied to clipboard
open override fun outputToString(output: Any): String
Link copied to clipboard
open override fun ramBytesUsed(output: Any): Long

Return memory usage for the provided output.

Link copied to clipboard
open override fun read(in: DataInput): Any

Decode an output value previously written with .write.

Link copied to clipboard

Decode an output value previously written with .writeFinalOutput. By default this just calls .read.

Link copied to clipboard

Skip the output previously written with .writeFinalOutput; defaults to just calling .readFinalOutput and discarding the result.

Link copied to clipboard
open fun skipOutput(in: DataInput)

Skip the output; defaults to just calling .read and discarding the result.

Link copied to clipboard
open override fun subtract(output: Any, inc: Any): Any

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

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun write(output: Any, out: DataOutput)

Encode an output value into a DataOutput.

Link copied to clipboard
fun writeFinalOutput(output: Any, out: DataOutput)

Encode an final node output value into a DataOutput. By default this just calls .write.