public synchronized void insert ( double value ) { buffer [ bufferCount ] = value ; bufferCount ++ ; if ( bufferCount == buffer . length ) { insertBatch ( ) ; compress ( ) ; } }
Add a new value from the stream .