Filtering fix.

This commit is contained in:
DomWos 2018-10-22 11:54:39 +02:00
parent 6fa2361283
commit aed1514c0b
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ public class FilteringBolt extends BaseBasicBolt {
@Override
public void execute(Tuple tuple, BasicOutputCollector basicOutputCollector) {
int operation = tuple.getIntegerByField("operation");
if(operation >= 0 ) {
if(operation > 0 ) {
basicOutputCollector.emit(tuple.getValues());
}
}