Пример #1
0
    @Override
    public FieldValue evaluate(List<FieldValue> values) {
      checkVariableArguments(values, 2);

      Boolean result = evaluate(values.get(0), values.subList(1, values.size()));

      return FieldValueUtil.create(result);
    }
 /**
  * @param bucket list of sstables, ordered from newest to oldest by getMinTimestamp().
  * @param maxThreshold maximum number of sstables in a single compaction task.
  * @return A bucket trimmed to the <code>maxThreshold</code> newest sstables.
  */
 @VisibleForTesting
 static List<SSTableReader> trimToThreshold(List<SSTableReader> bucket, int maxThreshold) {
   // Trim the oldest sstables off the end to meet the maxThreshold
   return bucket.subList(0, Math.min(bucket.size(), maxThreshold));
 }