Code example for PrimitiveSink

Methods: putLong

0
     */ 
    enum FileNodeFunnel implements Funnel<IData> {
        INSTANCE;
        public void funnel(IData data, PrimitiveSink into) {
            final FileData from = (FileData)data;
            into.putLong(from.dataKey).putBytes(from.val).putBoolean(from.eof);
        } 
    } 
 
    /** 
     * The nodes key value, which is equal with it's position in the list. 
     */ 
    private final long dataKey;
 
    /** 
     * The size of the filenode 
     */ 
    public static final int FILENODESIZE = 1024 * 16;
 
    /** 
     * The content of this node in form of a byte array.