Codota Logo
Key$Builder
Code IndexAdd Codota to your IDE (free)

How to use
Key$Builder
in
org.kitesdk.data

Best Java code snippets using org.kitesdk.data.Key$Builder (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: kite-sdk/kite-examples

@Override
public int run(String[] args) throws Exception {
 // Load the users dataset
 // Dataset is named [table].[entity]
 RandomAccessDataset<User> users = Datasets.load(
   "dataset:hbase:quickstart.cloudera/users.User", User.class);
 // 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));
 System.out.println("----");
 // Get a reader for the dataset and read the users from "bill" onwards
 DatasetReader<User> reader = null;
 try {
  reader = users.with("username", "bill").newReader();
  for (User user : reader) {
   System.out.println(user);
  }
 } finally {
  if (reader != null) {
   reader.close();
  }
 }
 return 0;
}
origin: kite-sdk/kite

/**
 * Build an instance of the configured key.
 *
 * @throws IllegalStateException If any required key field is missing.
 */
@SuppressWarnings("unchecked")
public Key build() {
 final List<FieldPartitioner> partitioners = strategy.getFieldPartitioners();
 final List<Object> content = Lists.newArrayListWithCapacity(partitioners.size());
 for (FieldPartitioner fp : partitioners) {
  content.add(valueFor(fp));
 }
 return new Key(content);
}
origin: kite-sdk/kite

Key key = new Key.Builder(ds)
  .add("part1", "part1_" + iStr)
  .add("part2", "part2_" + iStr).build();
compareEntitiesWithUtf8(0, ds.get(key));
origin: kite-sdk/kite

Key key = new Key.Builder(ds).add("part1", "1").add("part2", "1").build();
Map<String, SpecificRecord> returnedCompositeEntity = ds.get(key);
assertNotNull("found entity", returnedCompositeEntity);
compositeEntity.put("SubEntity1", subEntity1);
ds.put(compositeEntity);
returnedCompositeEntity = ds.get(new Key.Builder(ds).add("part1", "1").add("part2", "2").build());
assertNull(returnedCompositeEntity.get("SubEntity2"));
origin: org.kitesdk/kite-data-hbase

Key key = new Key.Builder(userProfileActionsDataset)
  .add("firstName", firstName)
  .add("lastName", lastName)
  .build();
origin: kite-sdk/kite

Key key = new Key.Builder(userProfileActionsDataset)
  .add("firstName", firstName)
  .add("lastName", lastName)
  .build();
origin: kite-sdk/kite

 Key key = new Key.Builder(ds)
   .add("part1", "part1_" + iStr)
   .add("part2", "part2_" + iStr).build();
 compareEntitiesWithString(i, ds.get(key));
Key key = new Key.Builder(ds)
  .add("part1", "part1_5")
  .add("part2", "part2_5").build();
origin: kite-sdk/kite

 Key key = new Key.Builder(ds)
   .add("part1", new Utf8("part1_" + iStr))
   .add("part2", new Utf8("part2_" + iStr)).build();
 compareEntitiesWithUtf8(i, ds.get(key));
Key key = new Key.Builder(ds)
  .add("part1", new Utf8("part1_5"))
  .add("part2", new Utf8("part2_5")).build();
org.kitesdk.dataKey$Builder

Javadoc

A fluent builder to aid in the construction of Key objects.

Most used methods

  • <init>
  • add
  • build
  • valueFor

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • putExtra (Intent)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Table (org.hibernate.mapping)
    A relational table
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now