@Test public void constructorOperators() { assertThat(new Filter("col == 42").getOperator(), equalTo(Operator.EQ)); assertThat(new Filter("col >= 42").getOperator(), equalTo(Operator.GE)); assertThat(new Filter("col > 42").getOperator(), equalTo(Operator.GT)); assertThat(new Filter("col IS 42").getOperator(), equalTo(Operator.IS)); assertThat(new Filter("col IS NOT 42").getOperator(), equalTo(Operator.ISNOT)); assertThat(new Filter("col < 42").getOperator(), equalTo(Operator.LT)); assertThat(new Filter("col <= 42").getOperator(), equalTo(Operator.LE)); assertThat(new Filter("col != 42").getOperator(), equalTo(Operator.NE)); }
public Operator getOperator() { return _operator; }
Filter { public Operator getOperator() { return _operator; } }
Filter { public Operator getOperator() { return _operator; } @JsonCreator  Filter(String filterStr); }
Filter { public Operator getOperator() { return _operator; } @JsonCreator  Filter(String filterStr); Operand getLeftOperand(); @JsonValue String getExpression(); Operator getOperator(); Operand getRightOperand(); boolean matches(Row row); }
Filter { public Operator getOperator() { return _operator; } @JsonCreator  Filter(String filterStr); Operand getLeftOperand(); @JsonValue String getExpression(); Operator getOperator(); Operand getRightOperand(); boolean matches(Row row);  }