/** * Creates a {@link ScanBuilder}. */ public ScanBuilder buildScan() { return new DefaultScanBuilder(); }
/** * Creates a {@link ScanBuilder} by copying from another {@link Scan} instance. */ public ScanBuilder buildScan(Scan scan) throws IOException { return new DefaultScanBuilder(scan); }
/** * Creates a {@link ScanBuilder} by copying from another {@link Scan} instance. */ public ScanBuilder buildScan(Scan scan) throws IOException { return new DefaultScanBuilder(scan); }
/** * Creates a {@link ScanBuilder}. */ public ScanBuilder buildScan() { return new DefaultScanBuilder(); }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); txStateCacheSupplier = new DefaultTransactionStateCacheSupplier(tablePrefix, env); txStateCache = txStateCacheSupplier.get(); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); txStateCacheSupplier = new DefaultTransactionStateCacheSupplier(tablePrefix, env); txStateCache = txStateCacheSupplier.get(); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); txStateCacheSupplier = new DefaultTransactionStateCacheSupplier(tablePrefix, env); txStateCache = txStateCacheSupplier.get(); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }
@Override public void start(CoprocessorEnvironment e) throws IOException { if (e instanceof RegionCoprocessorEnvironment) { RegionCoprocessorEnvironment env = (RegionCoprocessorEnvironment) e; HTableDescriptor tableDesc = env.getRegion().getTableDesc(); String metadataTableNamespace = tableDesc.getValue(Constants.MessagingSystem.HBASE_METADATA_TABLE_NAMESPACE); prefixLength = Integer.valueOf(tableDesc.getValue( Constants.MessagingSystem.HBASE_MESSAGING_TABLE_PREFIX_NUM_BYTES)); String tablePrefix = tableDesc.getValue(Constants.Dataset.TABLE_PREFIX); CConfigurationReader cConfReader = new CoprocessorCConfigurationReader(env, tablePrefix); txStateCacheSupplier = new DefaultTransactionStateCacheSupplier(tablePrefix, env); txStateCache = txStateCacheSupplier.get(); topicMetadataCacheSupplier = new TopicMetadataCacheSupplier( env, cConfReader, tablePrefix, metadataTableNamespace, new DefaultScanBuilder()); topicMetadataCache = topicMetadataCacheSupplier.get(); } }