@InterfaceAudience.Public @InterfaceStability.Evolving public class KuduPredicate extends Object
Modifier and Type | Class and Description |
---|---|
static class |
KuduPredicate.ComparisonOp
The comparison operator of a predicate.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
static KuduPredicate |
newComparisonPredicate(ColumnSchema column,
KuduPredicate.ComparisonOp op,
BigDecimal value)
Creates a new comparison predicate on a Decimal column.
|
static KuduPredicate |
newComparisonPredicate(ColumnSchema column,
KuduPredicate.ComparisonOp op,
boolean value)
Creates a new
KuduPredicate on a boolean column. |
static KuduPredicate |
newComparisonPredicate(ColumnSchema column,
KuduPredicate.ComparisonOp op,
byte[] value)
Creates a new comparison predicate on a binary column.
|
static KuduPredicate |
newComparisonPredicate(ColumnSchema column,
KuduPredicate.ComparisonOp op,
Date value)
Creates a new comparison predicate on a date column.
|
static KuduPredicate |
newComparisonPredicate(ColumnSchema column,
KuduPredicate.ComparisonOp op,
double value)
Creates a new comparison predicate on a double column.
|
static KuduPredicate |
newComparisonPredicate(ColumnSchema column,
KuduPredicate.ComparisonOp op,
float value)
Creates a new comparison predicate on a float column.
|
static KuduPredicate |
newComparisonPredicate(ColumnSchema column,
KuduPredicate.ComparisonOp op,
long value)
Creates a new comparison predicate on an integer or timestamp column.
|
static KuduPredicate |
newComparisonPredicate(ColumnSchema column,
KuduPredicate.ComparisonOp op,
Object value)
Creates a new comparison predicate on a column.
|
static KuduPredicate |
newComparisonPredicate(ColumnSchema column,
KuduPredicate.ComparisonOp op,
String value)
Creates a new comparison predicate on a string column.
|
static KuduPredicate |
newComparisonPredicate(ColumnSchema column,
KuduPredicate.ComparisonOp op,
Timestamp value)
Creates a new comparison predicate on a timestamp column.
|
static <T> KuduPredicate |
newInListPredicate(ColumnSchema column,
List<T> values)
Creates a new IN list predicate.
|
static KuduPredicate |
newIsNotNullPredicate(ColumnSchema column)
Creates a new
IS NOT NULL predicate. |
static KuduPredicate |
newIsNullPredicate(ColumnSchema column)
Creates a new
IS NULL predicate. |
String |
toString() |
public static KuduPredicate newComparisonPredicate(ColumnSchema column, KuduPredicate.ComparisonOp op, boolean value)
KuduPredicate
on a boolean column.column
- the column schemaop
- the comparison operationvalue
- the value to compare againstpublic static KuduPredicate newComparisonPredicate(ColumnSchema column, KuduPredicate.ComparisonOp op, long value)
column
- the column schemaop
- the comparison operationvalue
- the value to compare againstpublic static KuduPredicate newComparisonPredicate(ColumnSchema column, KuduPredicate.ComparisonOp op, BigDecimal value)
column
- the column schemaop
- the comparison operationvalue
- the value to compare againstpublic static KuduPredicate newComparisonPredicate(ColumnSchema column, KuduPredicate.ComparisonOp op, Timestamp value)
column
- the column schemaop
- the comparison operationvalue
- the value to compare againstpublic static KuduPredicate newComparisonPredicate(ColumnSchema column, KuduPredicate.ComparisonOp op, Date value)
column
- the column schemaop
- the comparison operationvalue
- the value to compare againstpublic static KuduPredicate newComparisonPredicate(ColumnSchema column, KuduPredicate.ComparisonOp op, float value)
column
- the column schemaop
- the comparison operationvalue
- the value to compare againstpublic static KuduPredicate newComparisonPredicate(ColumnSchema column, KuduPredicate.ComparisonOp op, double value)
column
- the column schemaop
- the comparison operationvalue
- the value to compare againstpublic static KuduPredicate newComparisonPredicate(ColumnSchema column, KuduPredicate.ComparisonOp op, String value)
column
- the column schemaop
- the comparison operationvalue
- the value to compare againstpublic static KuduPredicate newComparisonPredicate(ColumnSchema column, KuduPredicate.ComparisonOp op, byte[] value)
column
- the column schemaop
- the comparison operationvalue
- the value to compare againstpublic static KuduPredicate newComparisonPredicate(ColumnSchema column, KuduPredicate.ComparisonOp op, Object value)
Type
:
Type.BOOL -> java.lang.Boolean
Type.INT8 -> java.lang.Byte
Type.INT16 -> java.lang.Short
Type.INT32 -> java.lang.Integer
Type.INT64 -> java.lang.Long
Type.UNIXTIME_MICROS -> java.sql.Timestamp or java.lang.Long
Type.FLOAT -> java.lang.Float
Type.DOUBLE -> java.lang.Double
Type.STRING -> java.lang.String
Type.VARCHAR -> java.lang.String
Type.BINARY -> byte[]
Type.DECIMAL -> java.math.BigDecimal
Type.DATE -> java.sql.Datecolumn
- column the column schemaop
- the comparison operationvalue
- the value to compare againstpublic static <T> KuduPredicate newInListPredicate(ColumnSchema column, List<T> values)
T
- the type of values, must match the type of the columncolumn
- the column that the predicate applies tovalues
- list of values which the column values must matchpublic static KuduPredicate newIsNotNullPredicate(ColumnSchema column)
IS NOT NULL
predicate.column
- the column that the predicate applies toIS NOT NULL
predicatepublic static KuduPredicate newIsNullPredicate(ColumnSchema column)
IS NULL
predicate.column
- the column that the predicate applies toIS NULL
predicate