Java org.apache.lucene.util.fst Util fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.util.fst Util fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.util.fst Util.

The text is from its open source code.

Method

Tget(FST fst, IntsRef input)
Looks up the output for this input, or null if the input is not accepted.
Tget(FST fst, BytesRef input)
Looks up the output for this input, or null if the input is not accepted
IntsRefgetByOutput(FST fst, long targetOutput)
Reverse lookup (lookup by output instead of by input), in the special case when your FSTs outputs are strictly ascending.
BytesReftoBytesRef(IntsRef input, BytesRefBuilder scratch)
Just converts IntsRef to BytesRef; you must ensure the int values fit into a byte.
voidtoDot(FST fst, Writer out, boolean sameRank, boolean labelStates)
Dumps an FST to a GraphViz's dot language description for visualization.
IntsReftoIntsRef(BytesRef input, IntsRefBuilder scratch)
Just takes unsigned byte values from the BytesRef and converts into an IntsRef.
IntsReftoUTF16(CharSequence s, IntsRefBuilder scratch)
Just maps each UTF16 unit (char) to the ints in an IntsRef.
IntsReftoUTF32(CharSequence s, IntsRefBuilder scratch)
Decodes the Unicode codepoints from the provided CharSequence and places them in the provided scratch IntsRef, which must not be null, returning it.