Examples of fetchBucket()


Examples of com.basho.riak.client.IRiakClient.fetchBucket()

    private final Bucket bucket;

    RiakRecordWriter(TaskAttemptContext tac) throws RiakException {
        Configuration conf = tac.getConfiguration();
        IRiakClient client = ClientFactory.clusterClient(RiakConfig.getRiakLocatons(conf));
        bucket = client.fetchBucket(RiakConfig.getOutputBucket(conf)).execute();
    }

    /*
     * (non-Javadoc)
     *
 
View Full Code Here

Examples of com.basho.riak.client.IRiakClient.fetchBucket()

    @PostConstruct
    private void initDB() {
        try {
            IRiakClient client = RiakFactory.pbcClient("localhost", 8087);
            myBucket = client.fetchBucket("test").execute();
        } catch (RiakException ex) {
            Logger.getLogger(PersonSessionBean.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
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.