public final class TimelineFilterUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends org.apache.hadoop.yarn.server.timelineservice.storage.common.BaseTable<T>> |
createFilterForConfsOrMetricsToRetrieve(org.apache.hadoop.yarn.server.timelineservice.reader.filter.TimelineFilterList confsOrMetricToRetrieve,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnFamily<T> columnFamily,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<T> columnPrefix)
Create filters for confs or metrics to retrieve.
|
static <T extends org.apache.hadoop.yarn.server.timelineservice.storage.common.BaseTable<T>> |
createHBaseFilterList(org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<T> colPrefix,
org.apache.hadoop.yarn.server.timelineservice.reader.filter.TimelineFilterList filterList)
Creates equivalent HBase
FilterList from TimelineFilterList
while converting different timeline filters(of type TimelineFilter )
into their equivalent HBase filters. |
static <T extends org.apache.hadoop.yarn.server.timelineservice.storage.common.BaseTable<T>> |
createHBaseQualifierFilter(org.apache.hadoop.hbase.filter.CompareFilter.CompareOp compareOp,
org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<T> columnPrefix)
Create a HBase
QualifierFilter for the passed column prefix and
compare op. |
static <T extends org.apache.hadoop.yarn.server.timelineservice.storage.common.BaseTable<T>> |
createHBaseSingleColValueFilter(org.apache.hadoop.yarn.server.timelineservice.storage.common.Column<T> column,
Object value,
org.apache.hadoop.hbase.filter.CompareFilter.CompareOp op)
Creates a HBase
SingleColumnValueFilter with specified column. |
static <T extends org.apache.hadoop.yarn.server.timelineservice.storage.common.BaseTable<T>> |
createSingleColValueFiltersByRange(org.apache.hadoop.yarn.server.timelineservice.storage.common.Column<T> column,
Object startValue,
Object endValue)
Create 2 HBase
SingleColumnValueFilter filters for the specified
value range represented by start and end value and wraps them inside a
filter list. |
static Set<String> |
fetchColumnsFromFilterList(org.apache.hadoop.yarn.server.timelineservice.reader.filter.TimelineFilterList filterList)
Fetch columns from filter list containing exists and multivalue equality
filters.
|
public static <T extends org.apache.hadoop.yarn.server.timelineservice.storage.common.BaseTable<T>> org.apache.hadoop.hbase.filter.Filter createHBaseQualifierFilter(org.apache.hadoop.hbase.filter.CompareFilter.CompareOp compareOp, org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<T> columnPrefix)
QualifierFilter
for the passed column prefix and
compare op.T
- Describes the type of column prefix.compareOp
- compare op.columnPrefix
- column prefix.public static <T extends org.apache.hadoop.yarn.server.timelineservice.storage.common.BaseTable<T>> org.apache.hadoop.hbase.filter.Filter createFilterForConfsOrMetricsToRetrieve(org.apache.hadoop.yarn.server.timelineservice.reader.filter.TimelineFilterList confsOrMetricToRetrieve, org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnFamily<T> columnFamily, org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<T> columnPrefix) throws IOException
T
- Describes the type of column prefix.confsOrMetricToRetrieve
- configs/metrics to retrieve.columnFamily
- config or metric column family.columnPrefix
- config or metric column prefix.IOException
- if any problem occurs while creating the filters.public static <T extends org.apache.hadoop.yarn.server.timelineservice.storage.common.BaseTable<T>> org.apache.hadoop.hbase.filter.FilterList createSingleColValueFiltersByRange(org.apache.hadoop.yarn.server.timelineservice.storage.common.Column<T> column, Object startValue, Object endValue) throws IOException
SingleColumnValueFilter
filters for the specified
value range represented by start and end value and wraps them inside a
filter list. Start and end value should not be null.T
- Describes the type of column prefix.column
- Column for which single column value filter is to be created.startValue
- Start value.endValue
- End value.IOException
- if any problem is encountered while encoding value.public static <T extends org.apache.hadoop.yarn.server.timelineservice.storage.common.BaseTable<T>> org.apache.hadoop.hbase.filter.Filter createHBaseSingleColValueFilter(org.apache.hadoop.yarn.server.timelineservice.storage.common.Column<T> column, Object value, org.apache.hadoop.hbase.filter.CompareFilter.CompareOp op) throws IOException
SingleColumnValueFilter
with specified column.T
- Describes the type of column prefix.column
- Column which value to be filtered.value
- Value to be filtered.op
- Compare operatorIOException
- if any exception.public static Set<String> fetchColumnsFromFilterList(org.apache.hadoop.yarn.server.timelineservice.reader.filter.TimelineFilterList filterList)
filterList
- filter list.public static <T extends org.apache.hadoop.yarn.server.timelineservice.storage.common.BaseTable<T>> org.apache.hadoop.hbase.filter.FilterList createHBaseFilterList(org.apache.hadoop.yarn.server.timelineservice.storage.common.ColumnPrefix<T> colPrefix, org.apache.hadoop.yarn.server.timelineservice.reader.filter.TimelineFilterList filterList) throws IOException
FilterList
from TimelineFilterList
while converting different timeline filters(of type TimelineFilter
)
into their equivalent HBase filters.T
- Describes the type of column prefix.colPrefix
- column prefix which will be used for conversion.filterList
- timeline filter list which has to be converted.FilterList
object.IOException
- if any problem occurs while creating the filter list.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.