Package com.cloudera.cdk.data

Examples of com.cloudera.cdk.data.RandomAccessDatasetRepository.load()


    // Construct an HBase dataset repository using the local HBase database
    RandomAccessDatasetRepository repo =
        DatasetRepositories.openRandomAccess("repo:hbase:localhost.localdomain");

    // Load the users dataset
    RandomAccessDataset<User> users = repo.load("users");

    // Get an accessor for the dataset and write some users to it
    users.put(user("bill", "green"));
    users.put(user("alice", "blue"));
    users.put(user("cuthbert", "pink"));
View Full Code Here


    // Construct an HBase dataset repository using the local HBase database
    RandomAccessDatasetRepository repo =
        DatasetRepositories.openRandomAccess("repo:hbase:localhost.localdomain");

    // Load the users dataset
    RandomAccessDataset<User> users = repo.load("users");

    // Get an accessor for the dataset and look up a user by username
    Key key = new Key.Builder(users).add("username", "bill").build();
    System.out.println(users.get(key));
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.