Package co.cask.cdap.api.dataset.table

Examples of co.cask.cdap.api.dataset.table.Table


          }},
        new Supplier<AppMds>() {
          @Override
          public AppMds get() {
            try {
              Table mdsTable = DatasetsUtil.getOrCreateDataset(dsFramework, APP_META_TABLE, "table",
                                                               DatasetProperties.EMPTY,
                                                               DatasetDefinition.NO_ARGUMENTS, null);
              return new AppMds(mdsTable);
            } catch (Exception e) {
              LOG.error("Failed to access app.meta table", e);
View Full Code Here


  }

  @Override
  public KeyValueTable getDataset(DatasetSpecification spec,
                                  Map<String, String> arguments, ClassLoader classLoader) throws IOException {
    Table table = tableDef.getDataset(spec.getSpecification("kv"), arguments, classLoader);
    return new KeyValueTable(spec.getName(), table);
  }
View Full Code Here

  @Override
  public CounterTimeseriesTable getDataset(DatasetSpecification spec, Map<String, String> arguments,
                                           ClassLoader classLoader)
    throws IOException {
    Table table = tableDef.getDataset(spec.getSpecification("ts"), arguments, classLoader);
    return new CounterTimeseriesTable(spec, table);
  }
View Full Code Here

  public IndexedObjectStore<?> getDataset(DatasetSpecification spec,
                                          Map<String, String> arguments, ClassLoader classLoader) throws IOException {
    DatasetSpecification tableSpec = spec.getSpecification("index");
    DatasetSpecification objectStoreSpec = spec.getSpecification("data");

    Table index = tableDef.getDataset(tableSpec, arguments, classLoader);
    ObjectStore<?> objectStore = objectStoreDef.getDataset(objectStoreSpec, arguments, classLoader);

    return new IndexedObjectStore(spec.getName(), objectStore, index);
  }
View Full Code Here

  @Override
  public IndexedTable getDataset(DatasetSpecification spec,
                                 Map<String, String> arguments, ClassLoader classLoader) throws IOException {
    DatasetSpecification tableInstance = spec.getSpecification("d");
    Table table = tableDef.getDataset(tableInstance, arguments, classLoader);

    DatasetSpecification indexTableInstance = spec.getSpecification("i");
    Table index = tableDef.getDataset(indexTableInstance, arguments, classLoader);

    String columnNamesToIndex = spec.getProperty(INDEX_COLUMNS_CONF_KEY);
    Preconditions.checkNotNull(columnNamesToIndex, "columnsToIndex must be specified");
    String[] columns = columnNamesToIndex.split(",");
    byte[][] columnsToIndex = new byte[columns.length][];
View Full Code Here

  }

  @Override
  public TimeseriesTable getDataset(DatasetSpecification spec, Map<String, String> arguments, ClassLoader classLoader)
    throws IOException {
    Table table = tableDef.getDataset(spec.getSpecification("ts"), arguments, classLoader);
    return new TimeseriesTable(spec, table);
  }
View Full Code Here

          }},
        new Supplier<StreamMds>() {
          @Override
          public StreamMds get() {
            try {
              Table mdsTable = DatasetsUtil.getOrCreateDataset(dsFramework, STREAM_META_TABLE, "table",
                                                               DatasetProperties.EMPTY,
                                                               DatasetDefinition.NO_ARGUMENTS, null);

              return new StreamMds(new MetadataStoreDataset(mdsTable));
            } catch (Exception e) {
View Full Code Here

TOP

Related Classes of co.cask.cdap.api.dataset.table.Table

Copyright © 2018 www.massapicom. 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.