public class HBaseTableAdmin extends AbstractHBaseDataSetAdmin
AbstractHBaseDataSetAdmin.CoprocessorJar| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_SPLITS |
hConf, SYSTEM_PROPERTY_FORCE_HBASE_UPGRADE, tableId, tableUtil| Constructor and Description |
|---|
HBaseTableAdmin(co.cask.cdap.api.dataset.DatasetContext datasetContext,
co.cask.cdap.api.dataset.DatasetSpecification spec,
Configuration hConf,
HBaseTableUtil tableUtil,
CConfiguration conf,
LocationFactory locationFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
create() |
protected AbstractHBaseDataSetAdmin.CoprocessorJar |
createCoprocessorJar() |
static AbstractHBaseDataSetAdmin.CoprocessorJar |
createCoprocessorJarInternal(CConfiguration conf,
LocationFactory locationFactory,
HBaseTableUtil tableUtil,
boolean transactional,
boolean supportsReadlessIncrement) |
static byte[] |
getColumnFamily(co.cask.cdap.api.dataset.DatasetSpecification spec)
Returns the column family as being set in the given specification.
|
static boolean |
isTransactional(co.cask.cdap.api.dataset.DatasetSpecification spec)
Returns whether or not the dataset defined in the given specification is transactional.
|
static boolean |
isTransactional(org.apache.hadoop.hbase.HTableDescriptor desc)
Returns whether or not the table defined by the given descriptor has transactions enabled.
|
static boolean |
supportsReadlessIncrements(co.cask.cdap.api.dataset.DatasetSpecification spec)
Returns whether or not the dataset defined in the given specification should enable read-less increments.
|
static boolean |
supportsReadlessIncrements(org.apache.hadoop.hbase.HTableDescriptor desc)
Returns whether or not the table defined by the given descriptor has read-less increments enabled.
|
protected boolean |
upgradeTable(org.apache.hadoop.hbase.HTableDescriptor tableDescriptor)
Modifies the table descriptor for upgrade.
|
addCoprocessor, close, drop, exists, getAdmin, getVersion, setVersion, truncate, upgrade, upgradeTablepublic static final String PROPERTY_SPLITS
public HBaseTableAdmin(co.cask.cdap.api.dataset.DatasetContext datasetContext,
co.cask.cdap.api.dataset.DatasetSpecification spec,
Configuration hConf,
HBaseTableUtil tableUtil,
CConfiguration conf,
LocationFactory locationFactory)
throws IOException
IOExceptionpublic void create()
throws IOException
IOExceptionprotected boolean upgradeTable(org.apache.hadoop.hbase.HTableDescriptor tableDescriptor)
AbstractHBaseDataSetAdminupgradeTable in class AbstractHBaseDataSetAdminprotected AbstractHBaseDataSetAdmin.CoprocessorJar createCoprocessorJar() throws IOException
createCoprocessorJar in class AbstractHBaseDataSetAdminIOExceptionpublic static AbstractHBaseDataSetAdmin.CoprocessorJar createCoprocessorJarInternal(CConfiguration conf, LocationFactory locationFactory, HBaseTableUtil tableUtil, boolean transactional, boolean supportsReadlessIncrement) throws IOException
IOExceptionpublic static boolean supportsReadlessIncrements(co.cask.cdap.api.dataset.DatasetSpecification spec)
public static boolean isTransactional(co.cask.cdap.api.dataset.DatasetSpecification spec)
public static byte[] getColumnFamily(co.cask.cdap.api.dataset.DatasetSpecification spec)
DEFAULT_DATA_COLUMN_FAMILY will be returned.public static boolean supportsReadlessIncrements(org.apache.hadoop.hbase.HTableDescriptor desc)
public static boolean isTransactional(org.apache.hadoop.hbase.HTableDescriptor desc)
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.