Code example for PrimitiveSink

Methods: putLong

0
     */ 
    enum ByteDataFunnel implements Funnel<IData> {
        INSTANCE;
        public void funnel(IData data, PrimitiveSink into) {
            final BlockDataElement from = (BlockDataElement)data;
            into.putLong(from.dataKey).putBytes(from.val).putInt(from.size);
        } 
    } 
 
    /** 
     * The datas key value, which is equal with it's position in the list. 
     */ 
    private final long dataKey;
 
    /** 
     * The size of the byte array in the data. The maximum size of a byte array in 
     * a {@link BlockDataElement} is 2^32 - 1. This is because in the deserialization the 
     * first 4 bytes determine the size of each data. 
     */ 
    private int size = 0;
Connect your IDE to all the code out there  Get Codota for Java