public static Page createSequencePage(List<TupleInfo> tupleInfos1, int length, int... initialValues)
{
Block[] blocks = new Block[initialValues.length];
for (int i = 0; i < blocks.length; i++) {
TupleInfo tupleInfo = tupleInfos1.get(i);
int initialValue = initialValues[i];
if (tupleInfo.equals(SINGLE_LONG)) {
blocks[i] = BlockAssertions.createLongSequenceBlock(initialValue, initialValue + length);
}
else if (tupleInfo.equals(SINGLE_DOUBLE)) {
blocks[i] = BlockAssertions.createDoubleSequenceBlock(initialValue, initialValue + length);
}
else if (tupleInfo.equals(SINGLE_VARBINARY)) {
blocks[i] = BlockAssertions.createStringSequenceBlock(initialValue, initialValue + length);
}
else if (tupleInfo.equals(SINGLE_BOOLEAN)) {
blocks[i] = BlockAssertions.createBooleanSequenceBlock(initialValue, initialValue + length);
}
else {
throw new IllegalStateException("Unsupported tuple info " + tupleInfo);
}