Search in sources :

Example 1 with TFilterByOperator

use of org.apache.hadoop.hbase.thrift2.generated.TFilterByOperator in project hbase by apache.

the class ThriftUtilities method getSlowLogQueryFromHBase.

public static TLogQueryFilter getSlowLogQueryFromHBase(LogQueryFilter logQueryFilter) {
    TLogQueryFilter tLogQueryFilter = new TLogQueryFilter();
    tLogQueryFilter.setRegionName(logQueryFilter.getRegionName());
    tLogQueryFilter.setClientAddress(logQueryFilter.getClientAddress());
    tLogQueryFilter.setTableName(logQueryFilter.getTableName());
    tLogQueryFilter.setUserName(logQueryFilter.getUserName());
    tLogQueryFilter.setLimit(logQueryFilter.getLimit());
    TLogType tLogType = gettLogTypeFromHBase(logQueryFilter);
    tLogQueryFilter.setLogType(tLogType);
    TFilterByOperator tFilterByOperator = getTFilterByFromHBase(logQueryFilter);
    tLogQueryFilter.setFilterByOperator(tFilterByOperator);
    return tLogQueryFilter;
}
Also used : TLogQueryFilter(org.apache.hadoop.hbase.thrift2.generated.TLogQueryFilter) TLogType(org.apache.hadoop.hbase.thrift2.generated.TLogType) TFilterByOperator(org.apache.hadoop.hbase.thrift2.generated.TFilterByOperator)

Aggregations

TFilterByOperator (org.apache.hadoop.hbase.thrift2.generated.TFilterByOperator)1 TLogQueryFilter (org.apache.hadoop.hbase.thrift2.generated.TLogQueryFilter)1 TLogType (org.apache.hadoop.hbase.thrift2.generated.TLogType)1