use of org.apache.phoenix.pherf.configuration.DataSequence in project phoenix by apache.
the class RuleGeneratorTest method testSequentialDataSequence.
@Test
public void testSequentialDataSequence() throws Exception {
XMLConfigParser parser = new XMLConfigParser(matcherScenario);
DataModel model = parser.getDataModels().get(0);
WriteWorkload loader = new WriteWorkload(parser);
RulesApplier rulesApplier = loader.getRulesApplier();
Column targetColumn = null;
for (Column column : model.getDataMappingColumns()) {
DataSequence sequence = column.getDataSequence();
if (sequence == DataSequence.SEQUENTIAL) {
targetColumn = column;
break;
}
}
assertNotNull("Could not find a DataSequence.SEQENTIAL rule.", targetColumn);
assertMultiThreadedIncrementValue(targetColumn, rulesApplier);
}
Aggregations