@InterfaceAudience.Private public class SlowLogTableAccessor extends Object
| Modifier and Type | Field and Description | 
|---|---|
| private static Connection | connection | 
| private static org.slf4j.Logger | LOG | 
| private static Random | RANDOM | 
| static TableName | SLOW_LOG_TABLE_NAMEhbase:slowlog table name - can be enabled
 with config - hbase.regionserver.slowlog.systable.enabled | 
| Constructor and Description | 
|---|
| SlowLogTableAccessor() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | addSlowLogRecords(List<org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload> slowLogPayloads,
                 org.apache.hadoop.conf.Configuration configuration)Add slow/large log records to hbase:slowlog table | 
| private static void | createConnection(org.apache.hadoop.conf.Configuration configuration) | 
| private static void | doPut(Connection connection,
     List<Put> puts) | 
| private static byte[] | getRowKey(org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload slowLogPayload)Create rowKey: currentTimeMillis APPEND slowLogPayload.hashcode
 Scan on slowlog table should keep records with sorted order of time, however records
 added at the very same time (currentTimeMillis) could be in random order. | 
private static final org.slf4j.Logger LOG
private static Connection connection
public static final TableName SLOW_LOG_TABLE_NAME
public SlowLogTableAccessor()
private static void doPut(Connection connection, List<Put> puts) throws IOException
IOExceptionpublic static void addSlowLogRecords(List<org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload> slowLogPayloads, org.apache.hadoop.conf.Configuration configuration)
slowLogPayloads - List of SlowLogPayload to processconfiguration - Configuration to use for connectionprivate static void createConnection(org.apache.hadoop.conf.Configuration configuration) throws IOException
IOExceptionprivate static byte[] getRowKey(org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload slowLogPayload)
slowLogPayload - SlowLogPayload to processCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.