mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-16 17:34:52 -06:00
minor formatting fixes
This commit is contained in:
parent
1df11fa776
commit
080b40b08f
@ -30,7 +30,7 @@ public class CqlColumnDef implements NBNamedElement, Labeled {
|
||||
|
||||
public CqlColumnDef(CqlTable table, int position, String colname, String typedef) {
|
||||
this.table = table;
|
||||
this.position=position;
|
||||
this.position = position;
|
||||
this.type = typedef;
|
||||
this.name = colname;
|
||||
}
|
||||
@ -48,7 +48,7 @@ public class CqlColumnDef implements NBNamedElement, Labeled {
|
||||
}
|
||||
|
||||
public String getTrimmedTypedef() {
|
||||
return type.replaceAll(" ","");
|
||||
return type.replaceAll(" ", "");
|
||||
}
|
||||
|
||||
public String getTableName() {
|
||||
@ -92,18 +92,21 @@ public class CqlColumnDef implements NBNamedElement, Labeled {
|
||||
}
|
||||
|
||||
public String getSyntax() {
|
||||
return getName()+" "+getTrimmedTypedef();
|
||||
return getName() + " " + getTrimmedTypedef();
|
||||
}
|
||||
|
||||
public boolean isPartitionKey() {
|
||||
return table.isPartitionKey(position);
|
||||
}
|
||||
|
||||
public boolean isLastPartitionKey() {
|
||||
return table.isLastPartitionKey(position);
|
||||
}
|
||||
|
||||
public boolean isClusteringColumn() {
|
||||
return table.isClusteringColumn(position);
|
||||
}
|
||||
|
||||
public boolean isLastClusteringColumn() {
|
||||
return table.isLastClusteringColumn(position);
|
||||
}
|
||||
@ -113,6 +116,6 @@ public class CqlColumnDef implements NBNamedElement, Labeled {
|
||||
}
|
||||
|
||||
public String getFullName() {
|
||||
return getKeyspace()+"."+getTable().getName()+"."+getName()+"(column)";
|
||||
return getKeyspace() + "." + getTable().getName() + "." + getName() + "(column)";
|
||||
}
|
||||
}
|
||||
|
@ -80,7 +80,9 @@ model_transformers:
|
||||
# This controls how the elements in the schema are named in the yaml.
|
||||
# This affects block names, op template names and so on, and also how
|
||||
# op templates will be named in all logs and metric views.
|
||||
|
||||
naming_template: "[OPTYPE-][KEYSPACE-][TYPE-][NAME]"
|
||||
|
||||
# for more distinction in metric names if needed:
|
||||
#naming_template: "[BLOCKNAME-][OPTYPE-][KEYSPACE-][TYPE-][NAME]"
|
||||
|
||||
|
@ -25,6 +25,7 @@ import org.junit.jupiter.api.Test;
|
||||
import static io.nosqlbench.nb.spectest.traversal.STPredicateVerbs.*;
|
||||
|
||||
public class UniformWorkloadSpecificationTest {
|
||||
|
||||
private final static Logger logger = LogManager.getLogger(UniformWorkloadSpecificationTest.class);
|
||||
|
||||
private final static Object[] mdPredicate = new Object[] {
|
||||
|
Loading…
Reference in New Issue
Block a user