@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() |
org.apache.hadoop.hbase.security.visibility.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,org.apache.hadoop.hbase.security.access.Permission> perms) |
Query |
setACL(String user,
org.apache.hadoop.hbase.security.access.Permission perms) |
Query |
setAuthorizations(org.apache.hadoop.hbase.security.visibility.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(org.apache.hadoop.hbase.security.visibility.Authorizations authorizations)
authorizations
- public org.apache.hadoop.hbase.security.visibility.Authorizations getAuthorizations() throws org.apache.hadoop.hbase.exceptions.DeserializationException
org.apache.hadoop.hbase.exceptions.DeserializationException
public byte[] getACL()
public Query setACL(String user, org.apache.hadoop.hbase.security.access.Permission perms)
user
- User short nameperms
- Permissions for the userpublic Query setACL(Map<String,org.apache.hadoop.hbase.security.access.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()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.