private void populatePut ( Put p , byte [ ] family , String key , long value ) { byte [ ] valueBytes = null ; valueBytes = ( value != 0L ) ? Bytes . toBytes ( value ) : Constants . ZERO_LONG_BYTES ; byte [ ] qualifier = Bytes . toBytes ( getKey ( key ) . toLowerCase ( ) ) ; p . addColumn ( family , qualifier , valueBytes ) ; }
populates a put for long values