Class Filters.KeyFilter (2.44.0)

public static final class Filters.KeyFilter implements Serializable

Inheritance

java.lang.Object > Filters.KeyFilter

Implements

Serializable

Methods

exactMatch(ByteString value)

public Filters.Filter exactMatch(ByteString value)

Matches only cells from rows whose keys equal the value. In other words, passes through the entire row when the key matches, and otherwise produces an empty row.

Parameter
Name Description
value ByteString
Returns
Type Description
Filters.Filter

exactMatch(String value)

public Filters.Filter exactMatch(String value)

Matches only cells from rows whose keys equal the value. In other words, passes through the entire row when the key matches, and otherwise produces an empty row.

Parameter
Name Description
value String
Returns
Type Description
Filters.Filter

regex(ByteString regex)

public Filters.Filter regex(ByteString regex)

Matches only cells from rows whose keys satisfy the given RE2 regex. In other words, passes through the entire row when the key matches, and otherwise produces an empty row. Note that, since row keys can contain arbitrary bytes, the C escape sequence must be used if a true wildcard is desired. The . character will not match the new line character , which may be present in a binary key.

Parameter
Name Description
regex ByteString
Returns
Type Description
Filters.Filter

regex(String regex)

public Filters.Filter regex(String regex)

Matches only cells from rows whose keys satisfy the given RE2 regex. In other words, passes through the entire row when the key matches, and otherwise produces an empty row. Note that, since row keys can contain arbitrary bytes, the C escape sequence must be used if a true wildcard is desired. The . character will not match the new line character , which may be present in a binary key.

Parameter
Name Description
regex String
Returns
Type Description
Filters.Filter

sample(double probability)

public Filters.Filter sample(double probability)

Matches all cells from a row with probability, and matches no cells from the row with probability 1-probability.

Parameter
Name Description
probability double
Returns
Type Description
Filters.Filter