org.apache.hadoop.hbase.client.Query类的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(265)

本文整理了Java中org.apache.hadoop.hbase.client.Query类的一些代码示例,展示了Query类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query类的具体详情如下:
包路径:org.apache.hadoop.hbase.client.Query
类名称:Query

Query介绍

[英]Base class for HBase read operations; e.g. Scan and Get.
[中]HBase读取操作的基类;e、 g.扫描并获取。

代码示例

代码示例来源:origin: apache/hbase

  1. @Override public Get setColumnFamilyTimeRange(byte[] cf, long minStamp, long maxStamp) {
  2. return (Get) super.setColumnFamilyTimeRange(cf, minStamp, maxStamp);
  3. }

代码示例来源:origin: apache/hbase

  1. /**
  2. * @return The serialized ACL for this operation, or null if none
  3. */
  4. public byte[] getACL() {
  5. return getAttribute(AccessControlConstants.OP_ATTRIBUTE_ACL);
  6. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Get setACL(Map<String, Permission> perms) {
  3. return (Get) super.setACL(perms);
  4. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Get setAttribute(String name, byte[] value) {
  3. return (Get) super.setAttribute(name, value);
  4. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Scan setReplicaId(int Id) {
  3. return (Scan) super.setReplicaId(Id);
  4. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Get setFilter(Filter filter) {
  3. super.setFilter(filter);
  4. return this;
  5. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Get setId(String id) {
  3. return (Get) super.setId(id);
  4. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Get setConsistency(Consistency consistency) {
  3. return (Get) super.setConsistency(consistency);
  4. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Scan setAuthorizations(Authorizations authorizations) {
  3. return (Scan) super.setAuthorizations(authorizations);
  4. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Get setIsolationLevel(IsolationLevel level) {
  3. return (Get) super.setIsolationLevel(level);
  4. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Scan setAttribute(String name, byte[] value) {
  3. return (Scan) super.setAttribute(name, value);
  4. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Get setReplicaId(int Id) {
  3. return (Get) super.setReplicaId(Id);
  4. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Scan setFilter(Filter filter) {
  3. super.setFilter(filter);
  4. return this;
  5. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Scan setId(String id) {
  3. return (Scan) super.setId(id);
  4. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Scan setConsistency(Consistency consistency) {
  3. return (Scan) super.setConsistency(consistency);
  4. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Get setAuthorizations(Authorizations authorizations) {
  3. return (Get) super.setAuthorizations(authorizations);
  4. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Scan setIsolationLevel(IsolationLevel level) {
  3. return (Scan) super.setIsolationLevel(level);
  4. }

代码示例来源:origin: apache/hbase

  1. @Override public Scan setColumnFamilyTimeRange(byte[] cf, long minStamp, long maxStamp) {
  2. return (Scan) super.setColumnFamilyTimeRange(cf, minStamp, maxStamp);
  3. }

代码示例来源:origin: apache/hbase

  1. @Override
  2. public Get setACL(String user, Permission perms) {
  3. return (Get) super.setACL(user, perms);
  4. }

代码示例来源:origin: apache/hbase

  1. /**
  2. * Set the isolation level for this query. If the
  3. * isolation level is set to READ_UNCOMMITTED, then
  4. * this query will return data from committed and
  5. * uncommitted transactions. If the isolation level
  6. * is set to READ_COMMITTED, then this query will return
  7. * data from committed transactions only. If a isolation
  8. * level is not explicitly set on a Query, then it
  9. * is assumed to be READ_COMMITTED.
  10. * @param level IsolationLevel for this query
  11. */
  12. public Query setIsolationLevel(IsolationLevel level) {
  13. setAttribute(ISOLATION_LEVEL, level.toBytes());
  14. return this;
  15. }

相关文章