Search in sources :

Example 1 with SuffixTrieTailArray

use of org.trie4j.tail.SuffixTrieTailArray in project trie4j by takawitter.

the class TailLOUDSTrieWithSuffixTrieTailArrayWikipediaMonitoredSBVTest method buildSecondTrie.

@Override
protected Trie buildSecondTrie(Trie first) {
    bv.resetCounts();
    TailLOUDSTrie t = new TailLOUDSTrie(first, new LOUDSBvTree(bv), new SuffixTrieTailArray(first.size()), new NodeListener() {

        @Override
        public void listen(Node node, int id) {
        }
    });
    t.trimToSize();
    return t;
}
Also used : LOUDSBvTree(org.trie4j.louds.bvtree.LOUDSBvTree) NodeListener(org.trie4j.louds.TailLOUDSTrie.NodeListener) Node(org.trie4j.Node) SuffixTrieTailArray(org.trie4j.tail.SuffixTrieTailArray)

Aggregations

Node (org.trie4j.Node)1 NodeListener (org.trie4j.louds.TailLOUDSTrie.NodeListener)1 LOUDSBvTree (org.trie4j.louds.bvtree.LOUDSBvTree)1 SuffixTrieTailArray (org.trie4j.tail.SuffixTrieTailArray)1