Class CqlModel
java.lang.Object
io.nosqlbench.cqlgen.model.CqlModel
This model contains definition level details for schema elements which are parsed from the Antlr4 CQL grammar. Key elements include:
- keyspace definitions, organized by keyspace name
- type definitions, organized by keyspace name
- table definitions with included column definitions, organized by keyspace name
Because keyspace, table, and type elements are handled sometimes in different ways, these are stored in separate data structures, mapped by the logical keyspace name. This means that you will see table definitions for named keyspaces even if those named keyspaces are not represented in the keyspace definitions. This allows for sub-selecting of rendered elements by logical name without requiring a fully-interconnected keyspace->table->column object graph.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKeyspace(CqlKeyspaceDef keyspace) voidvoidgetStats()booleanhasStats()booleanisEmpty()refKeyspace(String ksname) voidremoveKeyspaceDef(String ksname) voidrenameColumn(CqlColumnBase extant, String newColName) voidsetKeyspaceAttributes(CGSchemaStats schemaStats)
-
Constructor Details
-
CqlModel
-
-
Method Details
-
getStats
-
hasStats
public boolean hasStats() -
getComputedStats
-
setKeyspaceAttributes
-
getErrors
-
refKeyspace
-
getKeyspaceDefs
-
getTypeDefs
-
removeKeyspaceDef
-
getSummaryLine
-
getTableDefs
-
renameColumn
-
isEmpty
public boolean isEmpty() -
getReferenceErrors
-
addKeyspace
-
addType
-
addTable
-