@ TimerJ public TableMetadata build ( boolean isPKRequired ) { if ( isPKRequired && partitionKey . isEmpty ( ) ) { this . withPartitionKey ( columns . keySet ( ) . iterator ( ) . next ( ) . getName ( ) ) ; } return new TableMetadata ( tableName , options , new LinkedHashMap <> ( columns ) , indexes , clusterName , partitionKey , clusterKey ) ; }
Builds the table metadata .