public static class ColumnDefinitions.Definition extends Object
| Constructor and Description |
|---|
Definition(String keyspace,
String table,
String name,
com.datastax.oss.driver.api.core.type.DataType type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ColumnDefinitions.Definition |
buildDefinitionInAnonymousTable(String name,
com.datastax.oss.driver.api.core.type.DataType type)
Builds a column definition in an anonymous table (useful for metadata result sets built programmatically).
|
boolean |
equals(Object o) |
String |
getKeyspace()
Gets the name of the keyspace this column is part of.
|
String |
getName()
Gets the name of the column.
|
String |
getTable()
Gets the name of the table this column is part of.
|
com.datastax.oss.driver.api.core.type.DataType |
getType()
Gets the type of the column.
|
int |
hashCode() |
com.datastax.oss.protocol.internal.response.result.ColumnSpec |
toColumnSpec(int idx)
Builds a
ColumnSpec instance based on this column definition. |
public static ColumnDefinitions.Definition buildDefinitionInAnonymousTable(String name, com.datastax.oss.driver.api.core.type.DataType type)
name - The column name.type - The column type.public com.datastax.oss.protocol.internal.response.result.ColumnSpec toColumnSpec(int idx)
ColumnSpec instance based on this column definition.idx - The index of the column in its table.ColumnSpec instance.public String getKeyspace()
public String getTable()
public String getName()
public com.datastax.oss.driver.api.core.type.DataType getType()
Copyright © 2020–2024 ING Bank. All rights reserved.