@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,
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,
String value)
Creates a new comparison predicate on a string 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, 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 <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
predicateCopyright © 2018 The Apache Software Foundation. All rights reserved.