public static KuduPredicate getPredicate(ColumnSchema column, KuduPredicate.ComparisonOp operator, Type type,
            Object key)
    {
        switch (type)
        {
        case BINARY:
            return KuduPredicate.newComparisonPredicate(column, operator, (byte[]) key);
        case BOOL:
            return KuduPredicate.newComparisonPredicate(column, operator, (Boolean) key);
        case DOUBLE:
            return KuduPredicate.newComparisonPredicate(column, operator, (Double) key);
        case FLOAT:
            return KuduPredicate.newComparisonPredicate(column, operator, (Float) key);
        case INT16:
            return KuduPredicate.newComparisonPredicate(column, operator, (Short) key);
        case INT32:
            return KuduPredicate.newComparisonPredicate(column, operator, (Integer) key);
        case INT64:
            return KuduPredicate.newComparisonPredicate(column, operator, (Long) key);
        case INT8:
            return KuduPredicate.newComparisonPredicate(column, operator, (Byte) key);
        case STRING:
            return KuduPredicate.newComparisonPredicate(column, operator, (String) key);
        case UNIXTIME_MICROS:
        default:
            logger.error(type + " type is not supported by Kudu");
            throw new KunderaException(type + " type is not supported by Kudu");
        }
    }
public static KuduPredicate getPredicate ( ColumnSchema column , KuduPredicate . ComparisonOp operator , Type type , Object key ) { switch ( type ) { case BINARY : return KuduPredicate . newComparisonPredicate ( column , operator , ( byte [ ] ) key ) ; case BOOL : return KuduPredicate . newComparisonPredicate ( column , operator , ( Boolean ) key ) ; case DOUBLE : return KuduPredicate . newComparisonPredicate ( column , operator , ( Double ) key ) ; case FLOAT : return KuduPredicate . newComparisonPredicate ( column , operator , ( Float ) key ) ; case INT16 : return KuduPredicate . newComparisonPredicate ( column , operator , ( Short ) key ) ; case INT32 : return KuduPredicate . newComparisonPredicate ( column , operator , ( Integer ) key ) ; case INT64 : return KuduPredicate . newComparisonPredicate ( column , operator , ( Long ) key ) ; case INT8 : return KuduPredicate . newComparisonPredicate ( column , operator , ( Byte ) key ) ; case STRING : return KuduPredicate . newComparisonPredicate ( column , operator , ( String ) key ) ; case UNIXTIME_MICROS : default : logger . error ( type + " type is not supported by Kudu" ) ; throw new KunderaException ( type + " type is not supported by Kudu" ) ; } }
Gets the predicate.

@param column
the column
@param operator
the operator
@param type
the type
@param key
the key
@return the predicate