Codota Logo
ObjectStoreDataset.<init>
Code IndexAdd Codota to your IDE (free)

How to use
co.cask.cdap.data2.dataset2.lib.table.ObjectStoreDataset
constructor

Best Java code snippets using co.cask.cdap.data2.dataset2.lib.table.ObjectStoreDataset.<init> (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: cdapio/cdap

 @Override
 public ObjectStoreDataset<?> getDataset(DatasetContext datasetContext, DatasetSpecification spec,
                     Map<String, String> arguments, ClassLoader classLoader) throws IOException {
  DatasetSpecification kvTableSpec = spec.getSpecification("objects");
  KeyValueTable table = tableDef.getDataset(datasetContext, kvTableSpec, arguments, classLoader);

  TypeRepresentation typeRep = GSON.fromJson(spec.getProperty("type"), TypeRepresentation.class);
  Schema schema = GSON.fromJson(spec.getProperty("schema"), Schema.class);
  return new ObjectStoreDataset(spec.getName(), table, typeRep, schema, classLoader);
 }
}
origin: co.cask.cdap/cdap-data-fabric

 @Override
 public ObjectStoreDataset<?> getDataset(DatasetContext datasetContext, DatasetSpecification spec,
                     Map<String, String> arguments, ClassLoader classLoader) throws IOException {
  DatasetSpecification kvTableSpec = spec.getSpecification("objects");
  KeyValueTable table = tableDef.getDataset(datasetContext, kvTableSpec, arguments, classLoader);

  TypeRepresentation typeRep = GSON.fromJson(spec.getProperty("type"), TypeRepresentation.class);
  Schema schema = GSON.fromJson(spec.getProperty("schema"), Schema.class);
  return new ObjectStoreDataset(spec.getName(), table, typeRep, schema, classLoader);
 }
}
origin: caskdata/cdap

Schema schema = new ReflectionSchemaGenerator().generate(type);
final ObjectStoreDataset<Custom> objectStore = new ObjectStoreDataset<>("kv", kvTable, typeRep, schema, loader);
TransactionExecutor txnl = dsFrameworkUtil.newInMemoryTransactionExecutor(objectStore);
co.cask.cdap.data2.dataset2.lib.tableObjectStoreDataset<init>

Popular methods of ObjectStoreDataset

  • createSplitReader
  • decode
  • delete
  • encode
  • getRecordType
  • getReflectionDatumReader
  • getSplits
  • read
  • scan
  • write

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • runOnUiThread (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
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