public final class TimelineFilterUtils
extends java.lang.Object
| Modifier and Type | Method | 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,
java.lang.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,
java.lang.Object startValue,
java.lang.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 java.util.Set<java.lang.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 java.io.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.java.io.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,
java.lang.Object startValue,
java.lang.Object endValue)
throws java.io.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.java.io.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,
java.lang.Object value,
org.apache.hadoop.hbase.filter.CompareFilter.CompareOp op)
throws java.io.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 operatorjava.io.IOException - if any exception.public static java.util.Set<java.lang.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 java.io.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.java.io.IOException - if any problem occurs while creating the filter list.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.