コード例 #1
0
 public SkipScanFilter(List<List<KeyRange>> slots, RowKeySchema schema) {
   int maxKeyLength = getTerminatorCount(schema);
   for (List<KeyRange> slot : slots) {
     int maxSlotLength = 0;
     for (KeyRange range : slot) {
       int maxRangeLength = Math.max(range.getLowerRange().length, range.getUpperRange().length);
       if (maxSlotLength < maxRangeLength) {
         maxSlotLength = maxRangeLength;
       }
     }
     maxKeyLength += maxSlotLength;
   }
   init(slots, schema, maxKeyLength);
 }