public byte [ ] encode ( final int id , final Histogram data_point , final boolean include_id ) { final HistogramDataPointCodec codec = getCodec ( id ) ; return codec . encode ( data_point , include_id ) ; }
Finds the proper codec and calls it s encode method to create a byte array with the given ID as the first byte .