Package krati.store.avro

Examples of krati.store.avro.SimpleAvroArray


   
    @Override
    protected void setUp() {
        try {
            File storeDir = DirUtils.getTestDir(getClass());
            _store = new SimpleAvroArray(
                    createArrayStore(storeDir, 1000),
                    createSchema());
        } catch(Exception e) {
            e.printStackTrace();
        }
View Full Code Here


        config.setSegmentFactory(createSegmentFactory());
        config.setSegmentFileSizeMB(32);
        config.setNumSyncBatches(2);
        config.setBatchSize(100);
       
        return new SimpleAvroArray(
                StoreFactory.createStaticArrayStore(config),
                schema);
    }
View Full Code Here

       
        // Create "Person" AvroStore
        source = "Person";
        responder = mtStoreResponder.createTenant(source);
        baseStore = ((BasicArrayStoreResponder)responder).getStore();
        AvroStore<Integer> personStore = new SimpleAvroArray(baseStore, createPersonSchema());
        map.put(source, personStore);
       
        // Create "Address" AvroStore
        source = "Address";
        responder = mtStoreResponder.createTenant(source);
        baseStore = ((BasicArrayStoreResponder)responder).getStore();
        AvroStore<Integer> addressStore = new SimpleAvroArray(baseStore, createAddressSchema());
        map.put(source, addressStore);
       
        // Create Avro store joiner
        AvroStoreJoiner<Integer> joiner = new AvroStoreJoiner<Integer>("PersonalRecord", "avro.test", map, keySerializer);
        joiner.setMaster(personStore);
View Full Code Here

TOP

Related Classes of krati.store.avro.SimpleAvroArray

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.