Package io.crate.operation.operator.input

Examples of io.crate.operation.operator.input.ObjectInput


        assertThat(result, instanceOf(Function.class));
    }

    private Boolean eq(DataType type, Object left, Object right) {
        EqOperator op = getOp(type);
        return op.evaluate(new Input[] {new ObjectInput(left),new ObjectInput(right) });
    }
View Full Code Here


        Set<Object> inListValues = new HashSet<>();
        for (Object o : inList) {
            inListValues.add(o);
        }
        InOperator op = new InOperator(Operator.generateInfo(InOperator.NAME, DataTypes.INTEGER));
        return op.evaluate(new ObjectInput(inValue), new ObjectInput(inListValues));
    }
View Full Code Here

        // "where 'something' in (null)"
        assertNull(in("something", new Object[]{null}));

        // "where 'something' in null"
        InOperator op = new InOperator(Operator.generateInfo(InOperator.NAME, DataTypes.STRING));
        assertNull(op.evaluate(new ObjectInput("something"), new ObjectInput(null)));
    }
View Full Code Here

        AnyEqOperator anyEqOperator = new AnyEqOperator(
                new FunctionInfo(
                        new FunctionIdent("any_=", Arrays.<DataType>asList(new ArrayType(DataTypes.INTEGER), DataTypes.INTEGER)),
                        DataTypes.BOOLEAN)
        );
        return anyEqOperator.evaluate(new ObjectInput(value), new ObjectInput(arrayExpr));

    }
View Full Code Here

TOP

Related Classes of io.crate.operation.operator.input.ObjectInput

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.