com.google.cloud.bigtable.hbase.adapters.filters
Class FilterAdapterHelper
- java.lang.Object
-
- com.google.cloud.bigtable.hbase.adapters.filters.FilterAdapterHelper
-
public class FilterAdapterHelper extends Object
Helpers for filter adapters.- Version:
- $Id: $Id
- Author:
- sduskis
-
-
Field Summary
Fields Modifier and Type Field and Description static com.google.bigtable.v2.RowFilter
ACCEPT_ALL_FILTER
A RowFilter that will match all cells.
-
Constructor Summary
Constructors Constructor and Description FilterAdapterHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static String
extractRegexPattern(RegexStringComparator comparator)
Extract a regular expression from a RegexStringComparator.static String
getSingleFamilyName(FilterAdapterContext context)
Extract a single family name from a FilterAdapterContext.
-
-
-
Field Detail
-
ACCEPT_ALL_FILTER
public static final com.google.bigtable.v2.RowFilter ACCEPT_ALL_FILTER
A RowFilter that will match all cells.
-
-
Method Detail
-
getSingleFamilyName
public static String getSingleFamilyName(FilterAdapterContext context)
Extract a single family name from a FilterAdapterContext. Throws if there is not exactly 1 family present in the scan.- Parameters:
context
- aFilterAdapterContext
object.- Returns:
- a
String
object.
-
extractRegexPattern
public static String extractRegexPattern(RegexStringComparator comparator)
Extract a regular expression from a RegexStringComparator.- Parameters:
comparator
- aRegexStringComparator
object.- Returns:
- a
String
object.
-
-