当前位置: 首页>>代码示例>>Java>>正文


Java AbstractStorageManager类代码示例

本文整理汇总了Java中org.apache.tajo.storage.AbstractStorageManager的典型用法代码示例。如果您正苦于以下问题:Java AbstractStorageManager类的具体用法?Java AbstractStorageManager怎么用?Java AbstractStorageManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AbstractStorageManager类属于org.apache.tajo.storage包,在下文中一共展示了AbstractStorageManager类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: PartitionMergeScanExec

import org.apache.tajo.storage.AbstractStorageManager; //导入依赖的package包/类
public PartitionMergeScanExec(TaskAttemptContext context, AbstractStorageManager sm,
                              ScanNode plan, CatalogProtos.FragmentProto[] fragments) throws IOException {
  super(context, plan.getInSchema(), plan.getOutSchema());

  this.plan = plan;
  this.fragments = fragments;
  this.sm = sm;

  inputStats = new TableStats();
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:11,代码来源:PartitionMergeScanExec.java

示例2: getFragmentsFromPartitionedTable

import org.apache.tajo.storage.AbstractStorageManager; //导入依赖的package包/类
/**
 * It creates a number of fragments for all partitions.
 */
public static List<FileFragment> getFragmentsFromPartitionedTable(AbstractStorageManager sm,
                                                                        ScanNode scan,
                                                                        TableDesc table) throws IOException {
  List<FileFragment> fragments = Lists.newArrayList();
  PartitionedTableScanNode partitionsScan = (PartitionedTableScanNode) scan;
  for (Path path : partitionsScan.getInputPaths()) {
    fragments.addAll(sm.getSplits(
        scan.getCanonicalName(), table.getMeta(), table.getSchema(), path));
  }
  partitionsScan.setInputPaths(null);
  return fragments;
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:16,代码来源:Repartitioner.java

示例3: SubQuery

import org.apache.tajo.storage.AbstractStorageManager; //导入依赖的package包/类
public SubQuery(QueryMasterTask.QueryMasterTaskContext context, MasterPlan masterPlan, ExecutionBlock block, AbstractStorageManager sm) {
  this.context = context;
  this.masterPlan = masterPlan;
  this.block = block;
  this.sm = sm;
  this.eventHandler = context.getEventHandler();

  ReadWriteLock readWriteLock = new ReentrantReadWriteLock();
  this.readLock = readWriteLock.readLock();
  this.writeLock = readWriteLock.writeLock();
  stateMachine = stateMachineFactory.make(this);
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:13,代码来源:SubQuery.java

示例4: setUp

import org.apache.tajo.storage.AbstractStorageManager; //导入依赖的package包/类
@BeforeClass
public static void setUp() throws Exception {
  util = new TajoTestingCluster();
  util.startCatalogCluster();

  conf = util.getConfiguration();
  catalog = util.getMiniCatalogCluster().getCatalog();
  TPCH tpch = new TPCH();
  tpch.loadSchemas();
  tpch.loadOutSchema();
  for (String table : tpch.getTableNames()) {
    TableMeta m = CatalogUtil.newTableMeta(CatalogProtos.StoreType.CSV);
    TableDesc d = CatalogUtil.newTableDesc(table, tpch.getSchema(table), m, CommonTestingUtil.getTestDir());
    TableStats stats = new TableStats();
    stats.setNumBytes(TPCH.tableVolumes.get(table));
    d.setStats(stats);
    catalog.addTable(d);
  }

  analyzer = new SQLAnalyzer();
  logicalPlanner = new LogicalPlanner(catalog);
  optimizer = new LogicalOptimizer(conf);

  AbstractStorageManager sm  = StorageManagerFactory.getStorageManager(conf);
  dispatcher = new AsyncDispatcher();
  dispatcher.init(conf);
  dispatcher.start();
  planner = new GlobalPlanner(conf, catalog);
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:30,代码来源:TestExecutionBlockCursor.java

示例5: getFragmentsFromPartitionedTable

import org.apache.tajo.storage.AbstractStorageManager; //导入依赖的package包/类
/**
 * It creates a number of fragments for all partitions.
 */
public static List<FileFragment> getFragmentsFromPartitionedTable(AbstractStorageManager sm,
                                                                        ScanNode scan,
                                                                        TableDesc table) throws IOException {
  List<FileFragment> fragments = Lists.newArrayList();
  PartitionedTableScanNode partitionsScan = (PartitionedTableScanNode) scan;
  fragments.addAll(sm.getSplits(
      scan.getCanonicalName(), table.getMeta(), table.getSchema(), partitionsScan.getInputPaths()));
  partitionsScan.setInputPaths(null);
  return fragments;
}
 
开发者ID:gruter,项目名称:tajo-cdh,代码行数:14,代码来源:Repartitioner.java

示例6: setUp

import org.apache.tajo.storage.AbstractStorageManager; //导入依赖的package包/类
@BeforeClass
public static void setUp() throws Exception {
  util = new TajoTestingCluster();
  util.startCatalogCluster();

  conf = util.getConfiguration();
  conf.set(TajoConf.ConfVars.DIST_QUERY_BROADCAST_JOIN_AUTO.varname, "false");

  catalog = util.getMiniCatalogCluster().getCatalog();
  catalog.createTablespace(DEFAULT_TABLESPACE_NAME, "hdfs://localhost:!234/warehouse");
  catalog.createDatabase(DEFAULT_DATABASE_NAME, DEFAULT_TABLESPACE_NAME);
  TPCH tpch = new TPCH();
  tpch.loadSchemas();
  tpch.loadOutSchema();
  for (String table : tpch.getTableNames()) {
    TableMeta m = CatalogUtil.newTableMeta(CatalogProtos.StoreType.CSV);
    TableDesc d = CatalogUtil.newTableDesc(
        CatalogUtil.buildFQName(DEFAULT_DATABASE_NAME, table), tpch.getSchema(table), m, CommonTestingUtil.getTestDir());
    TableStats stats = new TableStats();
    stats.setNumBytes(TPCH.tableVolumes.get(table));
    d.setStats(stats);
    catalog.createTable(d);
  }

  analyzer = new SQLAnalyzer();
  logicalPlanner = new LogicalPlanner(catalog);
  optimizer = new LogicalOptimizer(conf);

  AbstractStorageManager sm  = StorageManagerFactory.getStorageManager(conf);
  dispatcher = new AsyncDispatcher();
  dispatcher.init(conf);
  dispatcher.start();
  planner = new GlobalPlanner(conf, catalog);
}
 
开发者ID:gruter,项目名称:tajo-cdh,代码行数:35,代码来源:TestExecutionBlockCursor.java

示例7: PhysicalPlannerImpl

import org.apache.tajo.storage.AbstractStorageManager; //导入依赖的package包/类
public PhysicalPlannerImpl(final TajoConf conf, final AbstractStorageManager sm) {
  this.conf = conf;
  this.sm = sm;

  this.INNER_JOIN_INMEMORY_HASH_THRESHOLD = conf.getLongVar(ConfVars.EXECUTOR_INNER_JOIN_INMEMORY_HASH_THRESHOLD);
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:7,代码来源:PhysicalPlannerImpl.java

示例8: getStorageManager

import org.apache.tajo.storage.AbstractStorageManager; //导入依赖的package包/类
public AbstractStorageManager getStorageManager() {
  return storageManager;
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:4,代码来源:QueryMaster.java

示例9: getStorageManager

import org.apache.tajo.storage.AbstractStorageManager; //导入依赖的package包/类
public AbstractStorageManager getStorageManager() {
  return sm;
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:4,代码来源:SubQuery.java

示例10: getStorageManager

import org.apache.tajo.storage.AbstractStorageManager; //导入依赖的package包/类
public AbstractStorageManager getStorageManager() {
  return queryMasterContext.getStorageManager();
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:4,代码来源:QueryMasterTask.java

示例11: getStorageManager

import org.apache.tajo.storage.AbstractStorageManager; //导入依赖的package包/类
public AbstractStorageManager getStorageManager() {
  return this.storeManager;
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:4,代码来源:TajoMaster.java


注:本文中的org.apache.tajo.storage.AbstractStorageManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。