Class CqlTable
java.lang.Object
io.nosqlbench.cqlgen.model.CqlTable
- All Implemented Interfaces:
NBNamedElement,NBLabeledElement
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
NBLabeledElement.BasicLabeledElement -
Field Summary
Fields inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClusteringColumn(String ccol) voidaddcolumnDef(CqlTableColumn cqlField) voidaddPartitionKey(String pkey) voidaddTableClusteringOrder(String colname, String order) getColumnDefForName(String colname) getName()voidgetReferenceErrors(List<String> errors) booleanhasStats()booleanisClusteringColumn(int position) booleanbooleanisLastClusteringColumn(int position) booleanisLastPartitionKey(int position) booleanisPartitionKey(int position) voidrenameColumns(Function<String, String> renamer) voidsetCompactStorage(boolean isCompactStorage) voidvoidsetKeyspace(CqlKeyspaceDef keyspace) voidvoidsetStats(CGTableStats tableAttributes) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
description
-
Constructor Details
-
CqlTable
public CqlTable()
-
-
Method Details
-
isCompactStorage
public boolean isCompactStorage() -
getTableAttributes
-
setStats
-
addcolumnDef
-
setName
-
toString
-
getColumnDefs
-
getName
- Specified by:
getNamein interfaceNBNamedElement
-
setKeyspace
-
getLabels
- Specified by:
getLabelsin interfaceNBLabeledElement
-
addPartitionKey
-
addClusteringColumn
-
addTableClusteringOrder
-
getClusteringOrders
-
getPartitionKeys
-
getClusteringColumns
-
getColumnDefForName
-
renameColumns
-
getNonKeyColumnDefinitions
-
setCompactStorage
public void setCompactStorage(boolean isCompactStorage) -
getFullName
-
isPartitionKey
public boolean isPartitionKey(int position) -
isLastPartitionKey
public boolean isLastPartitionKey(int position) -
isClusteringColumn
public boolean isClusteringColumn(int position) -
isLastClusteringColumn
public boolean isLastClusteringColumn(int position) -
getComputedStats
-
setComputedStats
-
hasStats
public boolean hasStats() -
getKeyspace
-
getReferenceErrors
-