public static ReqlFunction1 buildFunction ( final String colName , final Object obj , final String identifier ) { return new ReqlFunction1 ( ) { @ Override public Object apply ( ReqlExpr row ) { switch ( identifier ) { case "<" : return row . g ( colName ) . lt ( obj ) ; case "<=" : return row . g ( colName ) . le ( obj ) ; case ">" : return row . g ( colName ) . gt ( obj ) ; case ">=" : return row . g ( colName ) . ge ( obj ) ; case "=" : return row . g ( colName ) . eq ( obj ) ; default : logger . error ( "Operation not supported" ) ; throw new KunderaException ( "Operation not supported" ) ; } } } ; }
Builds the function .