public class Lift extends Reduce
Lift's raison d'etre is to implement reduction of the trie via the Lift-Up method., which makes the data structure less liable to overstemming.
Constructor and Description |
---|
Lift(boolean changeSkip)
Constructor for the Lift object.
|
public Lift(boolean changeSkip)
changeSkip
- when set to true, comparison of two Cells takes
a skip command into accountpublic Trie optimize(Trie orig)
public void liftUp(Row in, List<Row> nodes)
The Lift-Up reduction propagates all leaf-values (patch commands), where possible, to higher levels which are closer to the root of the trie.
in
- the Row to consider when optimizingnodes
- contains the patch commandsCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.