@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class Query extends OperationWithAttributes
Modifier and Type | Field and Description |
---|---|
protected Consistency |
consistency |
protected Filter |
filter |
protected int |
targetReplicaId |
ID_ATRIBUTE
Constructor and Description |
---|
Query() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getACL() |
Authorizations |
getAuthorizations() |
Consistency |
getConsistency()
Returns the consistency level for this operation
|
Filter |
getFilter() |
IsolationLevel |
getIsolationLevel() |
int |
getReplicaId()
Returns region replica id where Query will fetch data from.
|
Query |
setACL(Map<String,Permission> perms) |
Query |
setACL(String user,
Permission perms) |
Query |
setAuthorizations(Authorizations authorizations)
Sets the authorizations to be used by this Query
|
Query |
setConsistency(Consistency consistency)
Sets the consistency level for this operation
|
Query |
setFilter(Filter filter)
Apply the specified server-side filter when performing the Query.
|
Query |
setIsolationLevel(IsolationLevel level)
Set the isolation level for this query.
|
Query |
setReplicaId(int Id)
Specify region replica id where Query will fetch data from.
|
getAttribute, getAttributeSize, getAttributesMap, getId, setAttribute, setId
protected Filter filter
protected int targetReplicaId
protected Consistency consistency
public Filter getFilter()
public Query setFilter(Filter filter)
Filter.filterKeyValue(Cell)
is called AFTER all tests
for ttl, column match, deletes and max versions have been run.filter
- filter to run on the serverpublic Query setAuthorizations(Authorizations authorizations)
authorizations
- public Authorizations getAuthorizations() throws DeserializationException
DeserializationException
public byte[] getACL()
public Query setACL(String user, Permission perms)
user
- User short nameperms
- Permissions for the userpublic Query setACL(Map<String,Permission> perms)
perms
- A map of permissions for a user or userspublic Consistency getConsistency()
public Query setConsistency(Consistency consistency)
consistency
- the consistency levelpublic Query setReplicaId(int Id)
setConsistency(Consistency)
passing Consistency.TIMELINE
to read data from
a specific replicaId.
Id
- public int getReplicaId()
public Query setIsolationLevel(IsolationLevel level)
level
- IsolationLevel for this querypublic IsolationLevel getIsolationLevel()