this.sortKeyIds = new int[proto.getCompSpecsCount()];
this.asc = new boolean[proto.getCompSpecsCount()];
this.nullFirsts = new boolean[proto.getCompSpecsCount()];
for (int i = 0; i < proto.getCompSpecsCount(); i++) {
TupleComparatorSpecProto sortSepcProto = proto.getCompSpecs(i);
sortKeyIds[i] = sortSepcProto.getColumnId();
asc[i] = sortSepcProto.getAscending();
nullFirsts[i] = sortSepcProto.getNullFirst();
}
}