public class Columns extends Object implements Iterable<ColumnName>
Columns.Selector.CqlIdentifier,
ColumnName,
Columns.Selector,
Columns.FunctionCall,
Columns.ColumnSelector| Modifier and Type | Class and Description |
|---|---|
static class |
Columns.ColumnSelector
Column selection.
|
static class |
Columns.FunctionCall
Function call selector with alias support.
|
static interface |
Columns.Selector
Strategy interface to render a column selection.
|
| Modifier and Type | Method and Description |
|---|---|
Columns |
and(Columns columns)
Returns a new
Columns consisting of the ColumnNames of the current Columns combined with
the given ones. |
static Columns |
empty()
Create an empty
Columns instance without any columns. |
boolean |
equals(Object object) |
static Columns |
from(CqlIdentifier... columnNames)
Create a
Columns given columnNames. |
static Columns |
from(String... columnNames)
Create a
Columns given columnNames. |
Optional<Columns.Selector> |
getSelector(ColumnName columnName) |
int |
hashCode() |
Columns |
include(CqlIdentifier columnName)
Include column
columnName to the selection. |
Columns |
include(String columnName)
Include column
columnName to the selection. |
boolean |
isEmpty() |
Iterator<ColumnName> |
iterator() |
Columns |
select(CqlIdentifier columnName,
Columns.Selector selector)
Include column
columnName with Columns.Selector. |
Columns |
select(String columnName,
Columns.Selector selector)
Include column
columnName with Columns.Selector. |
String |
toString() |
Columns |
ttl(CqlIdentifier columnName)
Include column
columnName as TTL value in the selection. |
Columns |
ttl(String columnName)
Include column
columnName as TTL value in the selection. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static Columns empty()
Columns instance without any columns.Columns instance.public static Columns from(String... columnNames)
Columns given columnNames. Individual column names can be either quoted or unquoted.columnNames - must not be null.Columns object for columnNames.public static Columns from(CqlIdentifier... columnNames)
Columns given columnNames.columnNames - must not be null.Columns object for columnNames.public Columns include(String columnName)
columnName to the selection. Column inclusion overrides an existing selection for the column
name.columnName - must not be null.Columns object containing all column definitions and the included columnName.public Columns include(CqlIdentifier columnName)
columnName to the selection. Column inclusion overrides an existing selection for the column
name.columnName - must not be null.Columns object containing all column definitions and the included columnName.public Columns ttl(String columnName)
columnName as TTL value in the selection. This column selection overrides an existing
selection for the column name.columnName - must not be null.Columns object containing all column definitions and the TTL for columnName.public Columns ttl(CqlIdentifier columnName)
columnName as TTL value in the selection. This column selection overrides an existing
selection for the column name.columnName - must not be null.Columns object containing all column definitions and the TTL for columnName.public Columns select(String columnName, Columns.Selector selector)
columnName with Columns.Selector. This column selection overrides an existing selection for
the column name.columnName - must not be null.Columns object containing all column definitions and the selected columnName.public Columns select(CqlIdentifier columnName, Columns.Selector selector)
columnName with Columns.Selector. This column selection overrides an existing selection for
the column name.columnName - must not be null.Columns object containing all column definitions and the selected columnName.public boolean isEmpty()
Columns object is empty.public Columns and(Columns columns)
Columns consisting of the ColumnNames of the current Columns combined with
the given ones. Existing ColumnNames are overwritten if specified within columns.public Iterator<ColumnName> iterator()
iterator in interface Iterable<ColumnName>public Optional<Columns.Selector> getSelector(ColumnName columnName)
columnName - must not be null.Optional Columns.Selector for ColumnName.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.