Class Util
Static helper methods.
@lucene.experimental
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public sealed class Util : object
Methods
Name | Description |
---|---|
Get<T>(FST<T>, BytesRef) | Looks up the output for this input, or |
Get<T>(FST<T>, Int32sRef) | Looks up the output for this input, or |
GetByOutput(FST<Nullable<Int64>>, Int64) | Reverse lookup (lookup by output instead of by input),
in the special case when your FSTs outputs are
strictly ascending. This locates the input/output
pair where the output is equal to the target, and will
return NOTE: this only works with |
GetByOutput(FST<Nullable<Int64>>, Int64, FST.BytesReader, FST.Arc<Nullable<Int64>>, FST.Arc<Nullable<Int64>>, Int32sRef) | Expert: like GetByOutput(FST<Nullable<Int64>>, Int64) except reusing FST.BytesReader, initial and scratch Arc, and result. |
ReadCeilArc<T>(Int32, FST<T>, FST.Arc<T>, FST.Arc<T>, FST.BytesReader) | Reads the first arc greater or equal that the given label into the provided
arc in place and returns it iff found, otherwise return |
ShortestPaths<T>(FST<T>, FST.Arc<T>, T, IComparer<T>, Int32, Boolean) | Starting from node, find the top N min cost completions to a final node. |
ToBytesRef(Int32sRef, BytesRef) | Just converts Int32sRef to BytesRef; you must ensure the
|
ToDot<T>(FST<T>, TextWriter, Boolean, Boolean) | Dumps an FST<T> to a GraphViz's
and then, from command line:
Note: larger FSTs (a few thousand nodes) won't even render, don't bother. If the FST is > 2.1 GB in size then this method will throw strange exceptions. See also http://www.graphviz.org/. |
ToInt32sRef(BytesRef, Int32sRef) | Just takes unsigned byte values from the BytesRef and converts into an Int32sRef. NOTE: This was toIntsRef() in Lucene |
ToUTF16(String, Int32sRef) | Just maps each UTF16 unit (char) to the |
ToUTF32(Char[], Int32, Int32, Int32sRef) | Decodes the Unicode codepoints from the provided
char[] and places them in the provided scratch
Int32sRef, which must not be |
ToUTF32(String, Int32sRef) | Decodes the Unicode codepoints from the provided
ICharSequence and places them in the provided scratch
Int32sRef, which must not be |