public class FilterSupportStatus extends Object
Modifier and Type | Field | 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 | 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()