Examples of FixedBufferCodec


Examples of org.fusesource.hawtbuf.codec.FixedBufferCodec

    }
   
    protected Index<Long, Buffer> createIndex(Transaction tx) {
        BTreeIndexFactory<Long, Buffer> factory = new BTreeIndexFactory<Long, Buffer>();
        factory.setKeyCodec(LongCodec.INSTANCE);
        factory.setValueCodec(new FixedBufferCodec(DATA.length));
        return factory.create(tx);
    }
View Full Code Here

Examples of org.fusesource.hawtbuf.codec.FixedBufferCodec

    }
   
    protected Index<Long, Buffer> createIndex(Transaction tx) {
        HashIndexFactory<Long, Buffer> factory = new HashIndexFactory<Long, Buffer>();
        factory.setKeyCodec(LongCodec.INSTANCE);
        factory.setValueCodec(new FixedBufferCodec(DATA.length));
        factory.setFixedCapacity(500);
        return factory.create(tx);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.