congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ObjectStoreDataset.<init>
Code IndexAdd Tabnine 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)

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

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • setContentView (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now