org.apache.hadoop.hbase.client.Table.getConfiguration()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(6.8k)|赞(0)|评价(0)|浏览(216)

本文整理了Java中org.apache.hadoop.hbase.client.Table.getConfiguration()方法的一些代码示例,展示了Table.getConfiguration()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.getConfiguration()方法的具体详情如下:
包路径:org.apache.hadoop.hbase.client.Table
类名称:Table
方法名:getConfiguration

Table.getConfiguration介绍

[英]Returns the org.apache.hadoop.conf.Configuration object used by this instance.

The reference returned is not a copy, so any change made to it will affect this instance.
[中]返回组织。阿帕奇。hadoop。此实例使用的conf.Configuration对象。
返回的引用不是副本,因此对其所做的任何更改都将影响此实例。

代码示例

代码示例来源:origin: apache/hbase

  1. /**
  2. * @param htable the {@link org.apache.hadoop.hbase.HTableDescriptor} to scan.
  3. */
  4. public void setHTable(Table htable) {
  5. Configuration conf = htable.getConfiguration();
  6. logScannerActivity = conf.getBoolean(
  7. ScannerCallable.LOG_SCANNER_ACTIVITY, false);
  8. logPerRowCount = conf.getInt(LOG_PER_ROW_COUNT, 100);
  9. this.htable = htable;
  10. }

代码示例来源:origin: apache/hbase

  1. /**
  2. * Sets the HBase table.
  3. *
  4. * @param htable The {@link org.apache.hadoop.hbase.HTableDescriptor} to scan.
  5. */
  6. public void setHTable(Table htable) {
  7. Configuration conf = htable.getConfiguration();
  8. logScannerActivity = conf.getBoolean(
  9. ScannerCallable.LOG_SCANNER_ACTIVITY, false);
  10. logPerRowCount = conf.getInt(LOG_PER_ROW_COUNT, 100);
  11. this.htable = htable;
  12. }

代码示例来源:origin: apache/hbase

  1. secureClient = new SecureBulkLoadClient(table.getConfiguration(), table);
  2. return performBulkLoad(admin, table, regionLocator, queue, pool, secureClient, copyFile);
  3. } finally {

代码示例来源:origin: apache/hbase

  1. secureClient = new SecureBulkLoadClient(table.getConfiguration(), table);
  2. return performBulkLoad(admin, table, regionLocator, queue, pool, secureClient, copyFile);
  3. } finally {

代码示例来源:origin: apache/hbase

  1. static Table createTestTable(TableName name, byte[][] rows, byte[][] families,
  2. byte[][] qualifiers, byte[] cellValue) throws IOException {
  3. Table ht = TEST_UTIL.createTable(name, families);
  4. List<Put> puts = createPuts(rows, families, qualifiers, cellValue);
  5. ht.put(puts);
  6. ht.getConfiguration().setInt(HConstants.HBASE_CLIENT_SCANNER_TIMEOUT_PERIOD, CLIENT_TIMEOUT);
  7. return ht;
  8. }

代码示例来源:origin: apache/hbase

  1. /**
  2. * Verifies that getConfiguration returns the same Configuration object used
  3. * to create the HTable instance.
  4. */
  5. @Test
  6. public void testGetConfiguration() throws Exception {
  7. final TableName tableName = TableName.valueOf(name.getMethodName());
  8. byte[][] FAMILIES = new byte[][] { Bytes.toBytes("foo") };
  9. Configuration conf = TEST_UTIL.getConfiguration();
  10. Table table = TEST_UTIL.createTable(tableName, FAMILIES);
  11. assertSame(conf, table.getConfiguration());
  12. }

代码示例来源:origin: apache/kylin

  1. admin = hbaseConnection.getAdmin();
  2. if (!enabled(table.getConfiguration())) {
  3. logger.info("Region size calculation disabled.");
  4. return;

代码示例来源:origin: apache/hbase

  1. try {
  2. LOG.info("Before map/reduce startup");
  3. job = new Job(table.getConfiguration(), "process column contents");
  4. job.setNumReduceTasks(1);
  5. Scan scan = new Scan();

代码示例来源:origin: apache/hbase

  1. try {
  2. LOG.info("Before map/reduce startup");
  3. job = new Job(table.getConfiguration(), "process column contents");
  4. job.setNumReduceTasks(1);
  5. Scan scan = new Scan();

代码示例来源:origin: apache/phoenix

  1. @Override
  2. public Configuration getConfiguration() {
  3. return delegate.getConfiguration();
  4. }

代码示例来源:origin: com.aliyun.hbase/alihbase-mapreduce

  1. /**
  2. * @param htable the {@link org.apache.hadoop.hbase.HTableDescriptor} to scan.
  3. */
  4. public void setHTable(Table htable) {
  5. Configuration conf = htable.getConfiguration();
  6. logScannerActivity = conf.getBoolean(
  7. ScannerCallable.LOG_SCANNER_ACTIVITY, false);
  8. logPerRowCount = conf.getInt(LOG_PER_ROW_COUNT, 100);
  9. this.htable = htable;
  10. }

代码示例来源:origin: com.aliyun.hbase/alihbase-mapreduce

  1. /**
  2. * Sets the HBase table.
  3. *
  4. * @param htable The {@link org.apache.hadoop.hbase.HTableDescriptor} to scan.
  5. */
  6. public void setHTable(Table htable) {
  7. Configuration conf = htable.getConfiguration();
  8. logScannerActivity = conf.getBoolean(
  9. ScannerCallable.LOG_SCANNER_ACTIVITY, false);
  10. logPerRowCount = conf.getInt(LOG_PER_ROW_COUNT, 100);
  11. this.htable = htable;
  12. }

代码示例来源:origin: org.locationtech.geomesa/geomesa-bigtable-spark

  1. /**
  2. * Sets the HBase table.
  3. *
  4. * @param htable The {@link org.apache.hadoop.hbase.HTableDescriptor} to scan.
  5. */
  6. public void setHTable(Table htable) {
  7. Configuration conf = htable.getConfiguration();
  8. logScannerActivity = conf.getBoolean(
  9. ScannerCallable.LOG_SCANNER_ACTIVITY, false);
  10. logPerRowCount = conf.getInt(LOG_PER_ROW_COUNT, 100);
  11. this.htable = htable;
  12. }

代码示例来源:origin: org.apache.hbase/hbase-mapreduce

  1. /**
  2. * @param htable the {@link org.apache.hadoop.hbase.HTableDescriptor} to scan.
  3. */
  4. public void setHTable(Table htable) {
  5. Configuration conf = htable.getConfiguration();
  6. logScannerActivity = conf.getBoolean(
  7. ScannerCallable.LOG_SCANNER_ACTIVITY, false);
  8. logPerRowCount = conf.getInt(LOG_PER_ROW_COUNT, 100);
  9. this.htable = htable;
  10. }

代码示例来源:origin: org.apache.hbase/hbase-mapreduce

  1. /**
  2. * Sets the HBase table.
  3. *
  4. * @param htable The {@link org.apache.hadoop.hbase.HTableDescriptor} to scan.
  5. */
  6. public void setHTable(Table htable) {
  7. Configuration conf = htable.getConfiguration();
  8. logScannerActivity = conf.getBoolean(
  9. ScannerCallable.LOG_SCANNER_ACTIVITY, false);
  10. logPerRowCount = conf.getInt(LOG_PER_ROW_COUNT, 100);
  11. this.htable = htable;
  12. }

代码示例来源:origin: org.cloudgraph/cloudgraph-hbase

  1. /**
  2. * Sets the HBase table.
  3. *
  4. * @param table
  5. * The root {@link Table} to scan.
  6. */
  7. public void setTable(Table table) {
  8. Configuration conf = table.getConfiguration();
  9. logScannerActivity = conf.getBoolean(ScannerCallable.LOG_SCANNER_ACTIVITY, false);
  10. logPerRowCount = conf.getInt(LOG_PER_ROW_COUNT, 100);
  11. this.table = table;
  12. }

代码示例来源:origin: harbby/presto-connectors

  1. /**
  2. * @param htable the {@link org.apache.hadoop.hbase.HTableDescriptor} to scan.
  3. */
  4. public void setHTable(Table htable) {
  5. Configuration conf = htable.getConfiguration();
  6. logScannerActivity = conf.getBoolean(
  7. ScannerCallable.LOG_SCANNER_ACTIVITY, false);
  8. logPerRowCount = conf.getInt(LOG_PER_ROW_COUNT, 100);
  9. this.htable = htable;
  10. }

代码示例来源:origin: harbby/presto-connectors

  1. /**
  2. * Sets the HBase table.
  3. *
  4. * @param htable The {@link org.apache.hadoop.hbase.HTableDescriptor} to scan.
  5. */
  6. public void setHTable(Table htable) {
  7. Configuration conf = htable.getConfiguration();
  8. logScannerActivity = conf.getBoolean(
  9. ScannerCallable.LOG_SCANNER_ACTIVITY, false);
  10. logPerRowCount = conf.getInt(LOG_PER_ROW_COUNT, 100);
  11. this.htable = htable;
  12. }

代码示例来源:origin: org.apache.hbase/hbase-server

  1. static Table createTestTable(TableName name, byte[][] rows, byte[][] families,
  2. byte[][] qualifiers, byte[] cellValue) throws IOException {
  3. Table ht = TEST_UTIL.createTable(name, families);
  4. List<Put> puts = createPuts(rows, families, qualifiers, cellValue);
  5. ht.put(puts);
  6. ht.getConfiguration().setInt(HConstants.HBASE_CLIENT_SCANNER_TIMEOUT_PERIOD, CLIENT_TIMEOUT);
  7. return ht;
  8. }

代码示例来源:origin: org.apache.hbase/hbase-server

  1. /**
  2. * Verifies that getConfiguration returns the same Configuration object used
  3. * to create the HTable instance.
  4. */
  5. @Test
  6. public void testGetConfiguration() throws Exception {
  7. final TableName tableName = TableName.valueOf(name.getMethodName());
  8. byte[][] FAMILIES = new byte[][] { Bytes.toBytes("foo") };
  9. Configuration conf = TEST_UTIL.getConfiguration();
  10. Table table = TEST_UTIL.createTable(tableName, FAMILIES);
  11. assertSame(conf, table.getConfiguration());
  12. }

相关文章