Tabnine Logo
VisibilityLabelsProtos$UserAuthorizations.getAuthList
Code IndexAdd Tabnine to your IDE (free)

How to use
getAuthList
method
in
org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos$UserAuthorizations

Best Java code snippets using org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos$UserAuthorizations.getAuthList (Showing top 14 results out of 315)

origin: apache/hbase

public int getSerializedSize() {
 int size = memoizedSerializedSize;
 if (size != -1) return size;
 size = 0;
 if (((bitField0_ & 0x00000001) == 0x00000001)) {
  size += com.google.protobuf.CodedOutputStream
   .computeBytesSize(1, user_);
 }
 {
  int dataSize = 0;
  for (int i = 0; i < auth_.size(); i++) {
   dataSize += com.google.protobuf.CodedOutputStream
    .computeUInt32SizeNoTag(auth_.get(i));
  }
  size += dataSize;
  size += 1 * getAuthList().size();
 }
 size += getUnknownFields().getSerializedSize();
 memoizedSerializedSize = size;
 return size;
}
origin: apache/hbase

public void refreshUserAuthsCache(byte[] data) throws IOException {
 MultiUserAuthorizations multiUserAuths = null;
 try {
  multiUserAuths = VisibilityUtils.readUserAuthsFromZKData(data);
 } catch (DeserializationException dse) {
  throw new IOException(dse);
 }
 this.lock.writeLock().lock();
 try {
  this.userAuths.clear();
  this.groupAuths.clear();
  for (UserAuthorizations userAuths : multiUserAuths.getUserAuthsList()) {
   String user = Bytes.toString(userAuths.getUser().toByteArray());
   if (AuthUtil.isGroupPrincipal(user)) {
    this.groupAuths.put(AuthUtil.getGroupName(user), new HashSet<>(userAuths.getAuthList()));
   } else {
    this.userAuths.put(user, new HashSet<>(userAuths.getAuthList()));
   }
  }
 } finally {
  this.lock.writeLock().unlock();
 }
}
origin: apache/hbase

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptorForType().hashCode();
 if (hasUser()) {
  hash = (37 * hash) + USER_FIELD_NUMBER;
  hash = (53 * hash) + getUser().hashCode();
 }
 if (getAuthCount() > 0) {
  hash = (37 * hash) + AUTH_FIELD_NUMBER;
  hash = (53 * hash) + getAuthList().hashCode();
 }
 hash = (29 * hash) + getUnknownFields().hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: harbby/presto-connectors

public void refreshUserAuthsCache(byte[] data) throws IOException {
 MultiUserAuthorizations multiUserAuths = null;
 try {
  multiUserAuths = VisibilityUtils.readUserAuthsFromZKData(data);
 } catch (DeserializationException dse) {
  throw new IOException(dse);
 }
 this.lock.writeLock().lock();
 try {
  this.userAuths.clear();
  this.groupAuths.clear();
  for (UserAuthorizations userAuths : multiUserAuths.getUserAuthsList()) {
   String user = Bytes.toString(userAuths.getUser().toByteArray());
   if (AuthUtil.isGroupPrincipal(user)) {
    this.groupAuths.put(AuthUtil.getGroupName(user),
     new HashSet<Integer>(userAuths.getAuthList()));
   } else {
    this.userAuths.put(user, new HashSet<Integer>(userAuths.getAuthList()));
   }
  }
 } finally {
  this.lock.writeLock().unlock();
 }
}
origin: harbby/presto-connectors

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.UserAuthorizations)) {
  return super.equals(obj);
 }
 org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.UserAuthorizations other = (org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.UserAuthorizations) obj;
 boolean result = true;
 result = result && (hasUser() == other.hasUser());
 if (hasUser()) {
  result = result && getUser()
    .equals(other.getUser());
 }
 result = result && getAuthList()
   .equals(other.getAuthList());
 result = result &&
   getUnknownFields().equals(other.getUnknownFields());
 return result;
}
origin: com.aliyun.hbase/alihbase-protocol

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.UserAuthorizations)) {
  return super.equals(obj);
 }
 org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.UserAuthorizations other = (org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.UserAuthorizations) obj;
 boolean result = true;
 result = result && (hasUser() == other.hasUser());
 if (hasUser()) {
  result = result && getUser()
    .equals(other.getUser());
 }
 result = result && getAuthList()
   .equals(other.getAuthList());
 result = result &&
   getUnknownFields().equals(other.getUnknownFields());
 return result;
}
origin: org.apache.hbase/hbase-protocol

public int getSerializedSize() {
 int size = memoizedSerializedSize;
 if (size != -1) return size;
 size = 0;
 if (((bitField0_ & 0x00000001) == 0x00000001)) {
  size += com.google.protobuf.CodedOutputStream
   .computeBytesSize(1, user_);
 }
 {
  int dataSize = 0;
  for (int i = 0; i < auth_.size(); i++) {
   dataSize += com.google.protobuf.CodedOutputStream
    .computeUInt32SizeNoTag(auth_.get(i));
  }
  size += dataSize;
  size += 1 * getAuthList().size();
 }
 size += getUnknownFields().getSerializedSize();
 memoizedSerializedSize = size;
 return size;
}
origin: harbby/presto-connectors

public int getSerializedSize() {
 int size = memoizedSerializedSize;
 if (size != -1) return size;
 size = 0;
 if (((bitField0_ & 0x00000001) == 0x00000001)) {
  size += com.facebook.presto.hbase.$internal.com.google.protobuf.CodedOutputStream
   .computeBytesSize(1, user_);
 }
 {
  int dataSize = 0;
  for (int i = 0; i < auth_.size(); i++) {
   dataSize += com.facebook.presto.hbase.$internal.com.google.protobuf.CodedOutputStream
    .computeUInt32SizeNoTag(auth_.get(i));
  }
  size += dataSize;
  size += 1 * getAuthList().size();
 }
 size += getUnknownFields().getSerializedSize();
 memoizedSerializedSize = size;
 return size;
}
origin: com.aliyun.hbase/alihbase-protocol

public int getSerializedSize() {
 int size = memoizedSerializedSize;
 if (size != -1) return size;
 size = 0;
 if (((bitField0_ & 0x00000001) == 0x00000001)) {
  size += com.google.protobuf.CodedOutputStream
   .computeBytesSize(1, user_);
 }
 {
  int dataSize = 0;
  for (int i = 0; i < auth_.size(); i++) {
   dataSize += com.google.protobuf.CodedOutputStream
    .computeUInt32SizeNoTag(auth_.get(i));
  }
  size += dataSize;
  size += 1 * getAuthList().size();
 }
 size += getUnknownFields().getSerializedSize();
 memoizedSerializedSize = size;
 return size;
}
origin: harbby/presto-connectors

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptorForType().hashCode();
 if (hasUser()) {
  hash = (37 * hash) + USER_FIELD_NUMBER;
  hash = (53 * hash) + getUser().hashCode();
 }
 if (getAuthCount() > 0) {
  hash = (37 * hash) + AUTH_FIELD_NUMBER;
  hash = (53 * hash) + getAuthList().hashCode();
 }
 hash = (29 * hash) + getUnknownFields().hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: com.aliyun.hbase/alihbase-protocol

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptorForType().hashCode();
 if (hasUser()) {
  hash = (37 * hash) + USER_FIELD_NUMBER;
  hash = (53 * hash) + getUser().hashCode();
 }
 if (getAuthCount() > 0) {
  hash = (37 * hash) + AUTH_FIELD_NUMBER;
  hash = (53 * hash) + getAuthList().hashCode();
 }
 hash = (29 * hash) + getUnknownFields().hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: org.apache.hbase/hbase-protocol

@java.lang.Override
public int hashCode() {
 if (memoizedHashCode != 0) {
  return memoizedHashCode;
 }
 int hash = 41;
 hash = (19 * hash) + getDescriptorForType().hashCode();
 if (hasUser()) {
  hash = (37 * hash) + USER_FIELD_NUMBER;
  hash = (53 * hash) + getUser().hashCode();
 }
 if (getAuthCount() > 0) {
  hash = (37 * hash) + AUTH_FIELD_NUMBER;
  hash = (53 * hash) + getAuthList().hashCode();
 }
 hash = (29 * hash) + getUnknownFields().hashCode();
 memoizedHashCode = hash;
 return hash;
}
origin: org.apache.hbase/hbase-protocol

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.UserAuthorizations)) {
  return super.equals(obj);
 }
 org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.UserAuthorizations other = (org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.UserAuthorizations) obj;
 boolean result = true;
 result = result && (hasUser() == other.hasUser());
 if (hasUser()) {
  result = result && getUser()
    .equals(other.getUser());
 }
 result = result && getAuthList()
   .equals(other.getAuthList());
 result = result &&
   getUnknownFields().equals(other.getUnknownFields());
 return result;
}
origin: apache/hbase

@java.lang.Override
public boolean equals(final java.lang.Object obj) {
 if (obj == this) {
  return true;
 }
 if (!(obj instanceof org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.UserAuthorizations)) {
  return super.equals(obj);
 }
 org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.UserAuthorizations other = (org.apache.hadoop.hbase.protobuf.generated.VisibilityLabelsProtos.UserAuthorizations) obj;
 boolean result = true;
 result = result && (hasUser() == other.hasUser());
 if (hasUser()) {
  result = result && getUser()
    .equals(other.getUser());
 }
 result = result && getAuthList()
   .equals(other.getAuthList());
 result = result &&
   getUnknownFields().equals(other.getUnknownFields());
 return result;
}
org.apache.hadoop.hbase.protobuf.generatedVisibilityLabelsProtos$UserAuthorizationsgetAuthList

Javadoc

repeated uint32 auth = 2;

Popular methods of VisibilityLabelsProtos$UserAuthorizations

  • getUser
    required bytes user = 1;
  • newBuilder
  • <init>
  • getAuthCount
    repeated uint32 auth = 2;
  • getDefaultInstance
  • getDescriptorForType
  • getSerializedSize
  • getUnknownFields
  • hasUser
    required bytes user = 1;
  • initFields
  • isInitialized
  • makeExtensionsImmutable
  • isInitialized,
  • makeExtensionsImmutable,
  • parseUnknownField

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Permission (java.security)
    Legacy security code; do not use.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now