Class FSTBuilder
- java.lang.Object
-
- org.apache.pinot.segment.local.utils.fst.FSTBuilder
-
public class FSTBuilder extends Object
Builds FST using lucene org.apache.lucene.util.fst.Builder library. FSTBuilder requires all the key/values be added in sorted order.
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description FSTBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntry(String key, Integer value)static org.apache.lucene.util.fst.FST<Long>buildFST(SortedMap<String,Integer> input)org.apache.lucene.util.fst.FST<Long>done()
-
-
-
Method Detail
-
buildFST
public static org.apache.lucene.util.fst.FST<Long> buildFST(SortedMap<String,Integer> input) throws IOException
- Throws:
IOException
-
addEntry
public void addEntry(String key, Integer value) throws IOException
- Throws:
IOException
-
done
public org.apache.lucene.util.fst.FST<Long> done() throws IOException
- Throws:
IOException
-
-