Package org.fusesource.hawtbuf.codec

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


    }
   
    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

Related Classes of org.fusesource.hawtbuf.codec.FixedBufferCodec

Copyright © 2018 www.massapicom. 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.