code: public void copyTo(ColumnBuffer dest, LongPredicate timestampTest) {
      dest.clear();
  
      if (key != null) {
        dest.key = new Key(key);
      }
  
      for (int i = 0; i < timeStamps.size(); i++) {
        long time = timeStamps.get(i);
        if (timestampTest.test(time)) {
          dest.add(time, values.get(i));
        }
      }
    }
docs: Clears the dest ColumnBuffer and inserts all entries in dest where the timestamp passes the
  timestampTest.
  
  @param dest Destination ColumnBuffer
  @param timestampTest Test to determine which timestamps get added to dest