use of com.google.bigtable.v2.RowFilter.Chain in project java-bigtable by googleapis.
the class Query method filter.
/**
* Sets the filter to apply to each row. Only one filter can be set at a time. To use multiple
* filters, please use {@link Filters#interleave()} or {@link Filters#chain()}.
*/
public Query filter(Filters.Filter filter) {
Preconditions.checkNotNull(filter, "filter can't be null");
RowFilter rowFilter = filter.toProto();
Preconditions.checkArgument(rowFilter.getSerializedSize() < MAX_FILTER_SIZE, "filter size can't be more than 20KB");
builder.setFilter(rowFilter);
return this;
}
Aggregations