mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-20 11:38:28 -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) {
|
public CqlColumnDef(CqlTable table, int position, String colname, String typedef) {
|
||||||
this.table = table;
|
this.table = table;
|
||||||
this.position=position;
|
this.position = position;
|
||||||
this.type = typedef;
|
this.type = typedef;
|
||||||
this.name = colname;
|
this.name = colname;
|
||||||
}
|
}
|
||||||
@ -48,7 +48,7 @@ public class CqlColumnDef implements NBNamedElement, Labeled {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getTrimmedTypedef() {
|
public String getTrimmedTypedef() {
|
||||||
return type.replaceAll(" ","");
|
return type.replaceAll(" ", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTableName() {
|
public String getTableName() {
|
||||||
@ -92,18 +92,21 @@ public class CqlColumnDef implements NBNamedElement, Labeled {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getSyntax() {
|
public String getSyntax() {
|
||||||
return getName()+" "+getTrimmedTypedef();
|
return getName() + " " + getTrimmedTypedef();
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPartitionKey() {
|
public boolean isPartitionKey() {
|
||||||
return table.isPartitionKey(position);
|
return table.isPartitionKey(position);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isLastPartitionKey() {
|
public boolean isLastPartitionKey() {
|
||||||
return table.isLastPartitionKey(position);
|
return table.isLastPartitionKey(position);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isClusteringColumn() {
|
public boolean isClusteringColumn() {
|
||||||
return table.isClusteringColumn(position);
|
return table.isClusteringColumn(position);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isLastClusteringColumn() {
|
public boolean isLastClusteringColumn() {
|
||||||
return table.isLastClusteringColumn(position);
|
return table.isLastClusteringColumn(position);
|
||||||
}
|
}
|
||||||
@ -113,6 +116,6 @@ public class CqlColumnDef implements NBNamedElement, Labeled {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getFullName() {
|
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 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
|
# This affects block names, op template names and so on, and also how
|
||||||
# op templates will be named in all logs and metric views.
|
# op templates will be named in all logs and metric views.
|
||||||
|
|
||||||
naming_template: "[OPTYPE-][KEYSPACE-][TYPE-][NAME]"
|
naming_template: "[OPTYPE-][KEYSPACE-][TYPE-][NAME]"
|
||||||
|
|
||||||
# for more distinction in metric names if needed:
|
# for more distinction in metric names if needed:
|
||||||
#naming_template: "[BLOCKNAME-][OPTYPE-][KEYSPACE-][TYPE-][NAME]"
|
#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.*;
|
import static io.nosqlbench.nb.spectest.traversal.STPredicateVerbs.*;
|
||||||
|
|
||||||
public class UniformWorkloadSpecificationTest {
|
public class UniformWorkloadSpecificationTest {
|
||||||
|
|
||||||
private final static Logger logger = LogManager.getLogger(UniformWorkloadSpecificationTest.class);
|
private final static Logger logger = LogManager.getLogger(UniformWorkloadSpecificationTest.class);
|
||||||
|
|
||||||
private final static Object[] mdPredicate = new Object[] {
|
private final static Object[] mdPredicate = new Object[] {
|
||||||
|
Loading…
Reference in New Issue
Block a user