use of com.palantir.atlasdb.table.description.NameComponentDescription in project atlasdb by palantir.
the class RowOrDynamicColumnRenderer method renderParameterList.
private void renderParameterList(List<NameComponentDescription> components) {
lineEnd("(");
for (NameComponentDescription comp : components.subList(0, components.size())) {
lineEnd(typeName(comp), " ", varName(comp), ", ");
}
replace(", ", ")");
}
use of com.palantir.atlasdb.table.description.NameComponentDescription in project atlasdb by palantir.
the class RowOrDynamicColumnRenderer method renderComputeFirstNComponentHash.
private void renderComputeFirstNComponentHash(int numberOfComponentsHashed) {
List<NameComponentDescription> components = getRowPartsWithoutHash().subList(0, numberOfComponentsHashed);
List<String> vars = Lists.newArrayList();
for (NameComponentDescription comp : components) {
vars.add(varName(comp));
}
line("long ", NameMetadataDescription.HASH_ROW_COMPONENT_NAME, " = computeHashFirstComponents(", Joiner.on(", ").join(vars), ");");
}
Aggregations