Class CqlTable

java.lang.Object
io.nosqlbench.cqlgen.model.CqlTable
All Implemented Interfaces:
NBNamedElement, NBLabeledElement

public class CqlTable extends Object implements NBNamedElement, NBLabeledElement
  • Constructor Details

    • CqlTable

      public CqlTable()
  • Method Details

    • isCompactStorage

      public boolean isCompactStorage()
    • getTableAttributes

      public CGTableStats getTableAttributes()
    • setStats

      public void setStats(CGTableStats tableAttributes)
    • addcolumnDef

      public void addcolumnDef(CqlTableColumn cqlField)
    • setName

      public void setName(String tableName)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getColumnDefs

      public List<CqlTableColumn> getColumnDefs()
    • getName

      public String getName()
      Specified by:
      getName in interface NBNamedElement
    • setKeyspace

      public void setKeyspace(CqlKeyspaceDef keyspace)
    • getLabels

      public NBLabels getLabels()
      Specified by:
      getLabels in interface NBLabeledElement
    • addPartitionKey

      public void addPartitionKey(String pkey)
    • addClusteringColumn

      public void addClusteringColumn(String ccol)
    • addTableClusteringOrder

      public void addTableClusteringOrder(String colname, String order)
    • getClusteringOrders

      public List<String> getClusteringOrders()
    • getPartitionKeys

      public List<String> getPartitionKeys()
    • getClusteringColumns

      public List<String> getClusteringColumns()
    • getColumnDefForName

      public CqlTableColumn getColumnDefForName(String colname)
    • renameColumns

      public void renameColumns(Function<String,String> renamer)
    • getNonKeyColumnDefinitions

      public List<CqlTableColumn> getNonKeyColumnDefinitions()
    • setCompactStorage

      public void setCompactStorage(boolean isCompactStorage)
    • getFullName

      public String 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

      public ComputedTableStats getComputedStats()
    • setComputedStats

      public void setComputedStats(ComputedTableStats stats)
    • hasStats

      public boolean hasStats()
    • getKeyspace

      public CqlKeyspaceDef getKeyspace()
    • getReferenceErrors

      public void getReferenceErrors(List<String> errors)