public class ColumnMetadataResultSetBuilder extends AbstractMetadataResultSetBuilder
CassandraMetadataResultSet objects) related to columns.| Constructor and Description |
|---|
ColumnMetadataResultSetBuilder(CassandraStatement statement)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CassandraMetadataResultSet |
buildColumns(String schemaPattern,
String tableNamePattern,
String columnNamePattern)
Builds a valid result set of the description of the table columns available in the given catalog (Cassandra
cluster).
|
matchesPatternpublic ColumnMetadataResultSetBuilder(CassandraStatement statement) throws SQLException
statement - The statement.SQLException - if a database access error occurs or this statement is closed.public CassandraMetadataResultSet buildColumns(String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException
DatabaseMetaData.getColumns(String, String, String, String).
Only table descriptions matching the catalog, schema, table and column name criteria are returned. They are
ordered by TABLE_CAT, TABLE_SCHEM, TABLE_NAME and ORDINAL_POSITION.
The columns of this result set are:
null: here is the Cassandra cluster name
(if available).null: here is the keyspace the table is
member of.Types.null is returned for data
types where it is not applicable. Always null here.NULL allowed:
DatabaseMetaData.columnNoNulls - might not allow NULL valuesDatabaseMetaData.columnNullable - definitely allows NULL valuesDatabaseMetaData.columnNullableUnknown - nullability unknownDatabaseMetaData.columnNoNulls here.
null:
always null here since comments on columns does not exist in Cassandra.null. Always null here.null here.null here.NULLsNULLsnull if DATA_TYPE isn't REF). Always null here.null if DATA_TYPE isn't REF). Always null here.null if DATA_TYPE isn't REF). Always null here.Types (null if DATA_TYPE isn't DISTINCT or user-generated
REF). Always null here.NO here.
NO here.
schemaPattern - A schema name pattern. It must match the schema name as it is stored in the database;
"" retrieves those without a schema and null means that the schema name
should not be used to narrow the search. Using "" as the same effect as
null because here the schema corresponds to the keyspace and Cassandra tables
cannot be defined outside a keyspace.tableNamePattern - A table name pattern. It must match the table name as it is stored in the database.columnNamePattern - A column name pattern. It must match the column name as it is stored in the database.DatabaseMetaData.getColumns(String, String, String, String).SQLException - when something went wrong during the creation of the result set.Copyright © 2020–2024 ING Bank. All rights reserved.