org.apache.hadoop.hbase.client.Query.getAttribute()方法的使用及代码示例

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

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

Query.getAttribute介绍

暂无

代码示例

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

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

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

/**
 * @return The authorizations this Query is associated with.
 * @throws DeserializationException
 */
public Authorizations getAuthorizations() throws DeserializationException {
 byte[] authorizationsBytes = this.getAttribute(VisibilityConstants.VISIBILITY_LABELS_ATTR_KEY);
 if (authorizationsBytes == null) return null;
 return ProtobufUtil.toAuthorizations(authorizationsBytes);
}

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

/**
 * @return The isolation level of this query.
 * If no isolation level was set for this query object,
 * then it returns READ_COMMITTED.
 * @return The IsolationLevel for this query
 */
public IsolationLevel getIsolationLevel() {
 byte[] attr = getAttribute(ISOLATION_LEVEL);
 return attr == null ? IsolationLevel.READ_COMMITTED :
            IsolationLevel.fromBytes(attr);
}

代码示例来源:origin: org.apache.hbase/hbase-client

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

代码示例来源:origin: org.apache.hbase/hbase-client

/**
 * @return The authorizations this Query is associated with.
 * @throws DeserializationException
 */
public Authorizations getAuthorizations() throws DeserializationException {
 byte[] authorizationsBytes = this.getAttribute(VisibilityConstants.VISIBILITY_LABELS_ATTR_KEY);
 if (authorizationsBytes == null) return null;
 return ProtobufUtil.toAuthorizations(authorizationsBytes);
}

代码示例来源:origin: org.apache.hbase/hbase-client

/**
 * @return The isolation level of this query.
 * If no isolation level was set for this query object,
 * then it returns READ_COMMITTED.
 * @return The IsolationLevel for this query
 */
public IsolationLevel getIsolationLevel() {
 byte[] attr = getAttribute(ISOLATION_LEVEL);
 return attr == null ? IsolationLevel.READ_COMMITTED :
            IsolationLevel.fromBytes(attr);
}

代码示例来源:origin: com.aliyun.hbase/alihbase-client

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

代码示例来源:origin: harbby/presto-connectors

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

代码示例来源:origin: com.aliyun.hbase/alihbase-client

/**
 * @return The authorizations this Query is associated with.
 * @throws DeserializationException
 */
public Authorizations getAuthorizations() throws DeserializationException {
 byte[] authorizationsBytes = this.getAttribute(VisibilityConstants.VISIBILITY_LABELS_ATTR_KEY);
 if (authorizationsBytes == null) return null;
 return ProtobufUtil.toAuthorizations(authorizationsBytes);
}

代码示例来源:origin: harbby/presto-connectors

/**
 * @return The authorizations this Query is associated with.
 * @throws DeserializationException
 */
public Authorizations getAuthorizations() throws DeserializationException {
 byte[] authorizationsBytes = this.getAttribute(VisibilityConstants.VISIBILITY_LABELS_ATTR_KEY);
 if (authorizationsBytes == null) return null;
 return ProtobufUtil.toAuthorizations(authorizationsBytes);
}

代码示例来源:origin: com.aliyun.hbase/alihbase-client

/**
 * @return The isolation level of this query.
 * If no isolation level was set for this query object,
 * then it returns READ_COMMITTED.
 * @return The IsolationLevel for this query
 */
public IsolationLevel getIsolationLevel() {
 byte[] attr = getAttribute(ISOLATION_LEVEL);
 return attr == null ? IsolationLevel.READ_COMMITTED :
            IsolationLevel.fromBytes(attr);
}

代码示例来源:origin: harbby/presto-connectors

/**
 * @return The isolation level of this query.
 * If no isolation level was set for this query object,
 * then it returns READ_COMMITTED.
 * @return The IsolationLevel for this query
 */
public IsolationLevel getIsolationLevel() {
 byte[] attr = getAttribute(ISOLATION_LEVEL);
 return attr == null ? IsolationLevel.READ_COMMITTED :
            IsolationLevel.fromBytes(attr);
}

相关文章