Skip to content

Commit

Permalink
bt logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sonalgoyal committed Mar 31, 2024
1 parent 347fe09 commit ff3511c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion common/core/src/main/java/zingg/common/core/block/Block.java
Expand Up @@ -3,6 +3,7 @@
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;

Expand Down Expand Up @@ -206,6 +207,16 @@ public void estimateElimCount(Canopy<R> c, long elimCount) {

}

/**
* */
protected List<FieldDefinition> getFieldsOfInterest(List<FieldDefinition> fieldsOfInterest){
//shallow clone is fine
List<FieldDefinition> shuffled = new ArrayList<FieldDefinition>(fieldsOfInterest);
Collections.shuffle(shuffled);
LOG.warn("shuffling");
return shuffled;
}

/**
* Holy Grail of Standalone
*
Expand All @@ -228,7 +239,7 @@ public Tree<Canopy<R>> getBlockingTree(Tree<Canopy<R>> tree, Canopy<R>parent,
}
if (size > maxSize && node.getDupeN() != null && node.getDupeN().size() > 0) {
LOG.debug("Size is bigger ");
Canopy<R>best = getBestNode(tree, parent, node, fieldsOfInterest);
Canopy<R>best = getBestNode(tree, parent, node, getFieldsOfInterest(fieldsOfInterest));
if (best != null) {
LOG.warn(" HashFunction is " + best + " and node is " + node);
if (LOG.isDebugEnabled()) {
Expand Down

0 comments on commit ff3511c

Please sign in to comment.