public interface ColumnCondition
ColumnFamilyManager.select(ColumnQuery)| Modifier and Type | Interface and Description |
|---|---|
static interface |
ColumnCondition.ColumnConditionProvider
A Supplier of
ColumnCondition where it will create from two parameters:
The first one is Column
The second one is the Condition |
| Modifier and Type | Method and Description |
|---|---|
static ColumnCondition |
and(ColumnCondition... conditions)
Returns a new
ColumnCondition aggregating ,as ¨AND", all the conditions as just one condition. |
ColumnCondition |
and(ColumnCondition condition)
Creates a new
ColumnCondition using the Condition.AND |
static ColumnCondition |
between(Column column)
Creates a
ColumnCondition that has a Condition.BETWEEN,
it means a select will scanning to a column family that is between two values informed
on a column name. |
static ColumnCondition |
eq(Column column)
Creates a
ColumnCondition that has a Condition.EQUALS, it means a select will scanning to a
column family that has the same name and equals value informed in this column. |
Column |
getColumn()
Gets the column to be used in the select
|
Condition |
getCondition()
Gets the conditions to be used in the select
|
static ColumnCondition |
gt(Column column)
Creates a
ColumnCondition that has a Condition.GREATER_THAN, it means a select will scanning to a
column family that has the same name and the value greater than informed in this column. |
static ColumnCondition |
gte(Column column)
Creates a
ColumnCondition that has a Condition.GREATER_EQUALS_THAN,
it means a select will scanning to a column family that has the same name and the value
greater or equals than informed in this column. |
static ColumnCondition |
in(Column column)
Creates a
ColumnCondition that has a Condition.IN, it means a select will scanning to a
column family that has the same name and the value is within informed in this column. |
static ColumnCondition |
like(Column column)
Creates a
ColumnCondition that has a Condition.LIKE, it means a select will scanning to a
column family that has the same name and the value is like than informed in this column. |
static ColumnCondition |
lt(Column column)
Creates a
ColumnCondition that has a Condition.LESSER_THAN, it means a select will scanning to a
column family that has the same name and the value lesser than informed in this column. |
static ColumnCondition |
lte(Column column)
Creates a
ColumnCondition that has a Condition.LESSER_EQUALS_THAN,
it means a select will scanning to a column family that has the same name and the value
lesser or equals than informed in this column. |
ColumnCondition |
negate()
Creates a new
ColumnCondition negating the current one |
static ColumnCondition |
or(ColumnCondition... conditions)
Returns a new
ColumnCondition aggregating ,as ¨OR", all the conditions as just one condition. |
ColumnCondition |
or(ColumnCondition condition)
Creates a new
ColumnCondition using the Condition.OR |
Column getColumn()
Condition getCondition()
ConditionColumnCondition and(ColumnCondition condition)
ColumnCondition using the Condition.ANDcondition - the condition to be agregatedNullPointerException - when the condition is nullColumnCondition negate()
ColumnCondition negating the current oneCondition.NOTColumnCondition or(ColumnCondition condition)
ColumnCondition using the Condition.ORcondition - the condition to be agregatedNullPointerException - when the condition is nullstatic ColumnCondition eq(Column column)
ColumnCondition that has a Condition.EQUALS, it means a select will scanning to a
column family that has the same name and equals value informed in this column.column - a column instanceColumnCondition with Condition.EQUALSNullPointerException - when column is nullstatic ColumnCondition gt(Column column)
ColumnCondition that has a Condition.GREATER_THAN, it means a select will scanning to a
column family that has the same name and the value greater than informed in this column.column - a column instanceColumnCondition with Condition.GREATER_THANNullPointerException - when column is nullstatic ColumnCondition gte(Column column)
ColumnCondition that has a Condition.GREATER_EQUALS_THAN,
it means a select will scanning to a column family that has the same name and the value
greater or equals than informed in this column.column - a column instanceColumnCondition with Condition.GREATER_EQUALS_THANNullPointerException - when column is nullstatic ColumnCondition lt(Column column)
ColumnCondition that has a Condition.LESSER_THAN, it means a select will scanning to a
column family that has the same name and the value lesser than informed in this column.column - a column instanceColumnCondition with Condition.LESSER_THANNullPointerException - when column is nullstatic ColumnCondition lte(Column column)
ColumnCondition that has a Condition.LESSER_EQUALS_THAN,
it means a select will scanning to a column family that has the same name and the value
lesser or equals than informed in this column.column - a column instanceColumnCondition with Condition.LESSER_EQUALS_THANNullPointerException - when column is nullstatic ColumnCondition in(Column column)
ColumnCondition that has a Condition.IN, it means a select will scanning to a
column family that has the same name and the value is within informed in this column.column - a column instanceColumnCondition with Condition.INNullPointerException - when column is nullIllegalArgumentException - when the Column.get() in not an iterable implementationstatic ColumnCondition like(Column column)
ColumnCondition that has a Condition.LIKE, it means a select will scanning to a
column family that has the same name and the value is like than informed in this column.column - a column instanceColumnCondition with Condition.LIKENullPointerException - when column is nullstatic ColumnCondition between(Column column)
ColumnCondition that has a Condition.BETWEEN,
it means a select will scanning to a column family that is between two values informed
on a column name.
The column must have a Column.get() an Iterable implementation
with just two elements.column - a column instanceNullPointerException - when column is nullIllegalArgumentException - When the column neither has an Iterable instance or two elements on
an Iterable.static ColumnCondition and(ColumnCondition... conditions)
ColumnCondition aggregating ,as ¨AND", all the conditions as just one condition.
The Column will storage the Condition.getNameField() as key and the value gonna be
the List of all conditions, in other words.
Given:
Column age = Column.of("age", 26);
Column name = Column.of("name", "otavio");
ColumnCondition condition = ColumnCondition.eq(name).and(ColumnCondition.gte(age));
The getColumn() will have "_AND" as key and the list of condition as value.conditions - the conditions to be aggregatedColumnCondition instanceNullPointerException - when the conditions is nullstatic ColumnCondition or(ColumnCondition... conditions)
ColumnCondition aggregating ,as ¨OR", all the conditions as just one condition.
The Column will storage the Condition.getNameField() as key and the value gonna be
the List of all conditions, in other words.
Given:
Column age = Column.of("age", 26);
Column name = Column.of("name", "otavio");
ColumnCondition condition = ColumnCondition.eq(name).or(ColumnCondition.gte(age));
The getColumn() will have "_OR" as key and the list of condition as value.conditions - the conditions to be aggregatedColumnCondition instanceNullPointerException - when the condition is nullCopyright © 2017–2021 Eclipse Foundation. All rights reserved.