@InternalApi(value="For internal usage only") public class FilterSupportStatus extends Object
The isSupported method indicates whether the Filter is supported and if isSupport() is false a reason may be provided by the adapter.
For internal use only - public for technical reasons.
| Modifier and Type | Field and Description |
|---|---|
static FilterSupportStatus |
NOT_SUPPORTED_WRONG_TYPE
Used to indicate an internal error where an adapter for a single Filter type is passed an
instance of an incompatible Filter type.
|
static FilterSupportStatus |
SUPPORTED
A static instance for all supported Filter adaptations.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSupported()
True if the adaptation is supported, false otherwise.
|
static FilterSupportStatus |
newCompositeNotSupported(List<FilterSupportStatus> unsupportedSubfilters)
Static constructor for a not supported status caused by sub-filters not being supported.
|
static FilterSupportStatus |
newNotSupported(String reason)
Generic static constructor for not supported adaptations with the stated reason.
|
static FilterSupportStatus |
newUnknownFilterType(org.apache.hadoop.hbase.filter.Filter unknownFilterType)
Static helper to construct not support adaptations due to no adapter being available for the
given Filter type.
|
String |
toString() |
public static final FilterSupportStatus SUPPORTED
public static final FilterSupportStatus NOT_SUPPORTED_WRONG_TYPE
public static FilterSupportStatus newUnknownFilterType(org.apache.hadoop.hbase.filter.Filter unknownFilterType)
unknownFilterType - The unknown filter instance.public static FilterSupportStatus newNotSupported(String reason)
reason - a String object.FilterSupportStatus object.public static FilterSupportStatus newCompositeNotSupported(List<FilterSupportStatus> unsupportedSubfilters)
unsupportedSubfilters - a List object.FilterSupportStatus object.public boolean isSupported()