Github user isper3at commented on a diff in the pull request:
https://github.com/apache/incubator-rya/pull/151#discussion_r110759330
--- Diff:
extras/indexing/src/main/java/org/apache/rya/indexing/accumulo/entity/EntityTupleSet.java
---
@@ -97,26 +98,29 @@ private void init() {
} catch (AccumuloSecurityException e) {
e.printStackTrace();
}
- if (conf.isUseStats() && conf.isUseSelectivity()) {
-
- ProspectorServiceEvalStatsDAO evalDao = new
ProspectorServiceEvalStatsDAO(accCon, conf);
- evalDao.init();
- AccumuloSelectivityEvalDAO ase = new
AccumuloSelectivityEvalDAO(conf, accCon);
- ase.setRdfEvalDAO(evalDao);
- ase.init();
- cardinality = starQuery.getCardinality(ase);
- CardinalityStatementPattern csp = starQuery.getMinCardSp(ase);
-
- minCard = csp.getCardinality();
- minSp = csp.getSp();
- } else {
- // TODO come up with a better default if cardinality is not
- // initialized
- cardinality = minCard = 1;
- minSp = starQuery.getNodes().get(0);
+ try {
+ if (conf.isUseStats() && conf.isUseSelectivity()) {
+ ProspectorServiceEvalStatsDAO evalDao = new
ProspectorServiceEvalStatsDAO(accCon, conf);
+ evalDao.init();
+ AccumuloSelectivityEvalDAO ase = new
AccumuloSelectivityEvalDAO(conf, accCon);
+ ase.setRdfEvalDAO(evalDao);
+ ase.init();
+
+ cardinality = starQuery.getCardinality(ase);
+ CardinalityStatementPattern csp =
starQuery.getMinCardSp(ase);
+
+ minCard = csp.getCardinality();
+ minSp = csp.getSp();
+ } else {
+ // TODO come up with a better default if cardinality is not
--- End diff --
is this a 'make jira ticket' todo or can this be removed?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---