Examples of KeyLister


Examples of com.basho.riak.hadoop.keylisters.KeyLister

     */
    public static KeyLister getKeyLister(Configuration conf) throws IOException {
        Class<? extends KeyLister> clazz = conf.getClass(KEY_LISTER_CLASS_PROPERTY, BucketKeyLister.class,
                                                         KeyLister.class);
        try {
            KeyLister lister = clazz.newInstance();
            lister.init(conf.get(KEY_LISTER_INIT_STRING_PROPERTY));
            return lister;
        } catch (IllegalAccessException e) {
            throw new RuntimeException(e);
        } catch (InstantiationException e) {
            throw new RuntimeException(e);
View Full Code Here

Examples of com.basho.riak.hadoop.keylisters.KeyLister

        if (locations.length == 0) {
            throw new NoRiakLocationsException();
        }

        final KeyLister keyLister = RiakConfig.getKeyLister(conf);

        try {
            List<BucketKey> keys = getKeys(locations, keyLister, 0);
            List<InputSplit> splits = getSplits(keys, locations,
                                                getSplitSize(keys.size(), RiakConfig.getHadoopClusterSize(conf, 3)));
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.