本文整理汇总了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();
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例8: getStorageManager
import org.apache.tajo.storage.AbstractStorageManager; //导入依赖的package包/类
public AbstractStorageManager getStorageManager() {
return storageManager;
}
示例9: getStorageManager
import org.apache.tajo.storage.AbstractStorageManager; //导入依赖的package包/类
public AbstractStorageManager getStorageManager() {
return sm;
}
示例10: getStorageManager
import org.apache.tajo.storage.AbstractStorageManager; //导入依赖的package包/类
public AbstractStorageManager getStorageManager() {
return queryMasterContext.getStorageManager();
}
示例11: getStorageManager
import org.apache.tajo.storage.AbstractStorageManager; //导入依赖的package包/类
public AbstractStorageManager getStorageManager() {
return this.storeManager;
}