IntSequenceOutputs

An Outputs implementation where each output is a sequence of ints.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val noOutput: IntsRef

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: IntsRef, output: IntsRef): IntsRef

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

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

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

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

Return memory usage for the provided output.

Link copied to clipboard
open override fun read(input: DataInput): IntsRef

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 override fun skipOutput(input: DataInput)

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

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

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

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

Encode an output value into a DataOutput.

Link copied to clipboard

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