Companion

object Companion

Properties

Link copied to clipboard

Value of the arc flags to declare a node with fixed length (sparse) arcs designed for binary search.

Link copied to clipboard

Value of the arc flags to declare a node with continuous arcs designed for pos the arc directly with labelToPos - firstLabel. like .ARCS_FOR_BINARY_SEARCH we use flag combinations that will not occur at the same time.

Link copied to clipboard

Value of the arc flags to declare a node with fixed length dense arcs and bit table designed for direct addressing.

Link copied to clipboard
Link copied to clipboard

This flag is set if the arc has an output.

Link copied to clipboard
const val BIT_FINAL_ARC: Int
Link copied to clipboard
const val BIT_LAST_ARC: Int
Link copied to clipboard
const val BIT_STOP_NODE: Int
Link copied to clipboard
const val BIT_TARGET_NEXT: Int
Link copied to clipboard
const val END_LABEL: Int

If arc has this label then that arc is final/accepted

Link copied to clipboard
const val FINAL_END_NODE: Long
Link copied to clipboard
const val NON_FINAL_END_NODE: Long = 0
Link copied to clipboard
const val VERSION_90: Int

Version that was used when releasing Lucene 9.0.

Link copied to clipboard

Version that started storing continuous arcs.

Link copied to clipboard
const val VERSION_CURRENT: Int

Current version.

Link copied to clipboard
const val VERSION_START: Int = 6

First supported version, this is the version that was used when releasing Lucene 7.0.

Functions

Link copied to clipboard
fun <T> fromFSTReader(fstMetadata: FST.FSTMetadata<T>?, fstReader: FSTReader): FST<T>?

Create a FST from a FSTReader. Return null if the metadata is null.

Link copied to clipboard
fun getNumPresenceBytes(labelRange: Int): Int

Gets the number of bytes required to flag the presence of each arc in the given label range, one bit per arc.

Link copied to clipboard
fun <T> read(path: Path, outputs: Outputs<T>): FST<T>

Reads an automaton from a file.

Link copied to clipboard
fun <T> readEndArc(follow: FST.Arc<T>, arc: FST.Arc<T>): FST.Arc<T>?
Link copied to clipboard
fun <T> readMetadata(metaIn: DataInput, outputs: Outputs<T>): FST.FSTMetadata<T>

Read the FST metadata from DataInput

Link copied to clipboard

returns true if the node at this address has any outgoing arcs