public final class Query extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
static Query |
create(String tableId)
Constructs a new Query object for the specified table id.
|
Query |
filter(Filters.Filter filter)
Sets the filter to apply to each row.
|
Query |
limit(long limit)
Limits the number of rows that can be returned
|
Query |
prefix(com.google.protobuf.ByteString prefix) |
Query |
prefix(String prefix) |
Query |
range(com.google.protobuf.ByteString start,
com.google.protobuf.ByteString end)
Adds a range to be looked up.
|
Query |
range(Range.ByteStringRange range)
Adds a range to be looked up.
|
Query |
range(String start,
String end)
Adds a range to be looked up.
|
Query |
rowKey(com.google.protobuf.ByteString key)
Adds a key to looked up
|
Query |
rowKey(String key)
Adds a key to looked up
|
com.google.bigtable.v2.ReadRowsRequest |
toProto(RequestContext requestContext)
Creates the request protobuf.
|
public static Query create(String tableId)
BigtableDataSettings
.public Query rowKey(com.google.protobuf.ByteString key)
public Query prefix(com.google.protobuf.ByteString prefix)
public Query range(String start, String end)
start
- The beginning of the range (inclusive). Can be null to represent negative
infinity.end
- The end of the range (exclusive). Can be null to represent positive infinity.public Query range(com.google.protobuf.ByteString start, com.google.protobuf.ByteString end)
start
- The beginning of the range (inclusive). Can be null to represent negative
infinity.end
- The end of the range (exclusive). Can be null to represent positive infinity.public Query range(Range.ByteStringRange range)
public Query filter(Filters.Filter filter)
Filters.interleave()
or Filters.chain()
.public Query limit(long limit)
@InternalApi public com.google.bigtable.v2.ReadRowsRequest toProto(RequestContext requestContext)
Copyright © 2018 Google. All rights reserved.