use of com.yahoo.bullet.querying.Querier in project bullet-storm by yahoo.
the class FilterBolt method onQuery.
private void onQuery(Tuple tuple) {
String id = tuple.getString(TopologyConstants.ID_POSITION);
String query = tuple.getString(TopologyConstants.QUERY_POSITION);
try {
Querier querier = createQuerier(Querier.Mode.PARTITION, id, query, config);
if (!querier.initialize().isPresent()) {
setupQuery(id, query, null, querier);
return;
}
} catch (RuntimeException ignored) {
}
// No need to handle any errors in the Filter Bolt.
log.error("Failed to initialize query for request {} with query {}", id, query);
}
Aggregations