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 ) ) ; } } }
Clears the dest ColumnBuffer and inserts all entries in dest where the timestamp passes the timestampTest .