private void add ( final long [ ] triple , final long value ) throws IOException { final int chunk = ( int ) ( triple [ 0 ] >>> DISK_CHUNKS_SHIFT ) ; count [ chunk ] ++ ; checkedForDuplicates = false ; if ( DEBUG ) System . err . println ( "Adding " + Arrays . toString ( triple ) ) ; writeLong ( triple [ 0 ] , byteBuffer [ chunk ] , writableByteChannel [ chunk ] ) ; writeLong ( triple [ 1 ] , byteBuffer [ chunk ] , writableByteChannel [ chunk ] ) ; writeLong ( triple [ 2 ] , byteBuffer [ chunk ] , writableByteChannel [ chunk ] ) ; if ( hashMask == 0 ) writeLong ( value , byteBuffer [ chunk ] , writableByteChannel [ chunk ] ) ; if ( filteredSize != - 1 && ( filter == null || filter . evaluate ( triple ) ) ) filteredSize ++ ; if ( value2FrequencyMap != null ) value2FrequencyMap . addTo ( value , 1 ) ; size ++ ; }
Adds a triple to this store .