Converted QueryOperator to java