public class SubApplicationTable extends BaseTable<SubApplicationTable>
|-------------------------------------------------------------------------| | Row | Column Family | Column Family| Column Family| | key | info | metrics | config | |-------------------------------------------------------------------------| | subAppUserId! | id:entityId | metricId1: | configKey1: | | clusterId! | type:entityType | metricValue1 | configValue1 | | entityType! | | @timestamp1 | | | idPrefix!| | | | configKey2: | | entityId! | created_time: | metricId1: | configValue2 | | userId | 1392993084018 | metricValue2 | | | | | @timestamp2 | | | | i!infoKey: | | | | | infoValue | metricId1: | | | | | metricValue1 | | | | | @timestamp2 | | | | e!eventId=timestamp= | | | | | infoKey: | | | | | eventInfoValue | | | | | | | | | | r!relatesToKey: | | | | | id3=id4=id5 | | | | | | | | | | s!isRelatedToKey | | | | | id7=id9=id6 | | | | | | | | | | flowVersion: | | | | | versionValue | | | |-------------------------------------------------------------------------|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_TABLE_NAME
default value for subapplication table name.
|
static String |
TABLE_NAME_CONF_NAME
config param name that specifies the subapplication table name.
|
| Constructor and Description |
|---|
SubApplicationTable() |
| 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 static final String DEFAULT_TABLE_NAME
public void createTable(org.apache.hadoop.hbase.client.Admin admin,
org.apache.hadoop.conf.Configuration hbaseConf)
throws IOException
BaseTablecreateTable in class BaseTable<SubApplicationTable>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 metricss in this table.hbaseConf - configururation in which to set the metrics TTL config
variable.Copyright © 2018 Apache Software Foundation. All Rights Reserved.