Codota Logo
StoreDefinition$ArtifactStore
Code IndexAdd Codota to your IDE (free)

How to use
StoreDefinition$ArtifactStore
in
co.cask.cdap.store

Best Java code snippets using co.cask.cdap.store.StoreDefinition$ArtifactStore (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: cdapio/cdap

 @BeforeClass
 public static void setup() throws Exception {
  CConfiguration cConf = CConfiguration.create();
  // any plugin which requires transaction will be excluded
  cConf.set(Constants.REQUIREMENTS_DATASET_TYPE_EXCLUDE, Joiner.on(",").join(Table.TYPE, KeyValueTable.TYPE));
  Injector injector = AppFabricTestHelper.getInjector(cConf);

  EmbeddedPostgres pg = EmbeddedPostgres.start();
  DataSource dataSource = pg.getPostgresDatabase();
  StructuredTableAdmin structuredTableAdmin = new PostgresSqlStructuredTableAdmin(dataSource);
  TransactionRunner transactionRunner = new SqlTransactionRunner(structuredTableAdmin, dataSource);
  artifactStore = new ArtifactStore(cConf,
                   injector.getInstance(NamespacePathLocator.class),
                   injector.getInstance(LocationFactory.class),
                   injector.getInstance(Impersonator.class),
                   transactionRunner);
  StoreDefinition.ArtifactStore.createTables(structuredTableAdmin);
 }
}
origin: cdapio/cdap

/**
 * Create all system tables.
 *
 * @param tableAdmin the table admin to create the table
 */
public static void createAllTables(StructuredTableAdmin tableAdmin) throws IOException, AlreadyExistsException {
 if (tableAdmin.getSpecification(ArtifactStore.ARTIFACT_DATA_TABLE) == null) {
  ArtifactStore.createTables(tableAdmin);
 }
}
origin: cdapio/cdap

 @BeforeClass
 public static void setup() throws Exception {
  CConfiguration cConf = CConfiguration.create();
  // any plugin which requires transaction will be excluded
  cConf.set(Constants.REQUIREMENTS_DATASET_TYPE_EXCLUDE, Joiner.on(",").join(Table.TYPE, KeyValueTable.TYPE));
  artifactStore = AppFabricTestHelper.getInjector(cConf).getInstance(ArtifactStore.class);
  Injector injector = AppFabricTestHelper.getInjector(cConf);
  DatasetFramework datasetFramework = injector.getInstance(DatasetFramework.class);
  StructuredTableAdmin structuredTableAdmin = new NoSqlStructuredTableAdmin(datasetFramework);
  TransactionSystemClient txClient = injector.getInstance(TransactionSystemClient.class);

  TransactionRunner transactionRunner = new NoSqlTransactionRunner(datasetFramework, txClient);
  artifactStore = new ArtifactStore(cConf,
                   injector.getInstance(NamespacePathLocator.class),
                   injector.getInstance(LocationFactory.class),
                   injector.getInstance(Impersonator.class),
                   transactionRunner
  );
  StoreDefinition.ArtifactStore.createTables(structuredTableAdmin);
 }
}
co.cask.cdap.storeStoreDefinition$ArtifactStore

Most used methods

  • createTables

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • JComboBox (javax.swing)
  • Option (scala)
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