public class ApplicationTable extends BaseTable<ApplicationTable>
|-------------------------------------------------------------------------| | Row | Column Family | Column Family| Column Family| | key | info | metrics | config | |-------------------------------------------------------------------------| | clusterId! | id:appId | metricId1: | configKey1: | | userName! | | metricValue1 | configValue1 | | flowName! | created_time: | @timestamp1 | | | flowRunId! | 1392993084018 | | configKey2: | | AppId | | metriciD1: | configValue2 | | | i!infoKey: | metricValue2 | | | | infoValue | @timestamp2 | | | | | | | | | r!relatesToKey: | metricId2: | | | | id3=id4=id5 | metricValue1 | | | | | @timestamp2 | | | | s!isRelatedToKey: | | | | | id7=id9=id6 | | | | | | | | | | e!eventId=timestamp=infoKey: | | | | | eventInfoValue | | | | | | | | | | flowVersion: | | | | | versionValue | | | |-------------------------------------------------------------------------|
| Modifier and Type | Field and Description |
|---|---|
static String |
TABLE_NAME_CONF_NAME
config param name that specifies the application table name.
|
| Constructor and Description |
|---|
ApplicationTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
createTable(org.apache.hadoop.hbase.client.Admin admin,
org.apache.hadoop.conf.Configuration hbaseConf)
Used to create the table in HBase.
|
void |
setMetricsTTL(int metricsTTL,
org.apache.hadoop.conf.Configuration hbaseConf) |
getResult, getResultScanner, getTableMutator, getTableName, getTableName, getTableNamepublic static final String TABLE_NAME_CONF_NAME
public void createTable(org.apache.hadoop.hbase.client.Admin admin,
org.apache.hadoop.conf.Configuration hbaseConf)
throws IOException
BaseTablecreateTable in class BaseTable<ApplicationTable>admin - Used for doing HBase table operations.hbaseConf - Hbase configuration.IOException - if any exception occurs while creating the table.public void setMetricsTTL(int metricsTTL,
org.apache.hadoop.conf.Configuration hbaseConf)
metricsTTL - time to live parameter for the metrics in this table.hbaseConf - configuration in which to set the metrics TTL config
variable.Copyright © 2018 Apache Software Foundation. All Rights Reserved.