Codota Logo
TRoleChanges.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.apache.sentry.hdfs.service.thrift.TRoleChanges
constructor

Best Java code snippets using org.apache.sentry.hdfs.service.thrift.TRoleChanges.<init> (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: apache/incubator-sentry

public TRoleChanges deepCopy() {
 return new TRoleChanges(this);
}
origin: apache/incubator-sentry

public TRoleChanges addRoleUpdate(String role) {
 if (tPermUpdate.getRoleChanges().containsKey(role)) {
  return tPermUpdate.getRoleChanges().get(role);
 }
 TRoleChanges roleUpdate = new TRoleChanges(role, new LinkedList<String>(),
   new LinkedList<String>());
 tPermUpdate.getRoleChanges().put(role, roleUpdate);
 return roleUpdate;
}
origin: apache/incubator-sentry

/**
 * Performs a deep copy on <i>other</i>.
 */
public TPermissionsUpdate(TPermissionsUpdate other) {
 __isset_bitfield = other.__isset_bitfield;
 this.hasfullImage = other.hasfullImage;
 this.seqNum = other.seqNum;
 if (other.isSetPrivilegeChanges()) {
  Map<String,TPrivilegeChanges> __this__privilegeChanges = new HashMap<String,TPrivilegeChanges>();
  for (Map.Entry<String, TPrivilegeChanges> other_element : other.privilegeChanges.entrySet()) {
   String other_element_key = other_element.getKey();
   TPrivilegeChanges other_element_value = other_element.getValue();
   String __this__privilegeChanges_copy_key = other_element_key;
   TPrivilegeChanges __this__privilegeChanges_copy_value = new TPrivilegeChanges(other_element_value);
   __this__privilegeChanges.put(__this__privilegeChanges_copy_key, __this__privilegeChanges_copy_value);
  }
  this.privilegeChanges = __this__privilegeChanges;
 }
 if (other.isSetRoleChanges()) {
  Map<String,TRoleChanges> __this__roleChanges = new HashMap<String,TRoleChanges>();
  for (Map.Entry<String, TRoleChanges> other_element : other.roleChanges.entrySet()) {
   String other_element_key = other_element.getKey();
   TRoleChanges other_element_value = other_element.getValue();
   String __this__roleChanges_copy_key = other_element_key;
   TRoleChanges __this__roleChanges_copy_value = new TRoleChanges(other_element_value);
   __this__roleChanges.put(__this__roleChanges_copy_key, __this__roleChanges_copy_value);
  }
  this.roleChanges = __this__roleChanges;
 }
}
origin: apache/incubator-sentry

@Override
public PermissionsUpdate retrieveFullImage(long currSeqNum) {
 final Timer.Context timerContext =
   SentryHdfsMetricsUtil.getRetrieveFullImageTimer.time();
 Map<String, HashMap<String, String>> privilegeImage = sentryStore.retrieveFullPrivilegeImage();
 Map<String, LinkedList<String>> roleImage = sentryStore.retrieveFullRoleImage();
 TPermissionsUpdate tPermUpdate = new TPermissionsUpdate(true, currSeqNum,
   new HashMap<String, TPrivilegeChanges>(),
   new HashMap<String, TRoleChanges>());
 for (Map.Entry<String, HashMap<String, String>> privEnt : privilegeImage.entrySet()) {
  String authzObj = privEnt.getKey();
  HashMap<String,String> privs = privEnt.getValue();
  tPermUpdate.putToPrivilegeChanges(authzObj, new TPrivilegeChanges(
    authzObj, privs, new HashMap<String, String>()));
 }
 for (Map.Entry<String, LinkedList<String>> privEnt : roleImage.entrySet()) {
  String role = privEnt.getKey();
  LinkedList<String> groups = privEnt.getValue();
  tPermUpdate.putToRoleChanges(role, new TRoleChanges(role, groups, new LinkedList<String>()));
 }
 PermissionsUpdate permissionsUpdate = new PermissionsUpdate(tPermUpdate);
 permissionsUpdate.setSeqNum(currSeqNum);
 timerContext.stop();
 SentryHdfsMetricsUtil.getPrivilegeChangesHistogram.update(
   tPermUpdate.getPrivilegeChangesSize());
 SentryHdfsMetricsUtil.getRoleChangesHistogram.update(
   tPermUpdate.getRoleChangesSize());
 return permissionsUpdate;
}
origin: apache/incubator-sentry

_val109 = new TRoleChanges();
_val109.read(iprot);
struct.roleChanges.put(_key108, _val109);
origin: apache/incubator-sentry

_val121 = new TRoleChanges();
_val121.read(iprot);
struct.roleChanges.put(_key120, _val121);
org.apache.sentry.hdfs.service.thriftTRoleChanges<init>

Javadoc

Performs a deep copy on other.

Popular methods of TRoleChanges

  • addToAddGroups
  • addToDelGroups
  • getAddGroups
  • getDelGroups
  • getRole
  • equals
  • isSetAddGroups
    Returns true if field addGroups is set (has been assigned a value) and false otherwise
  • isSetDelGroups
    Returns true if field delGroups is set (has been assigned a value) and false otherwise
  • isSetRole
    Returns true if field role is set (has been assigned a value) and false otherwise
  • read
  • setAddGroups
  • setAddGroupsIsSet
  • setAddGroups,
  • setAddGroupsIsSet,
  • setDelGroups,
  • setDelGroupsIsSet,
  • setRole,
  • setRoleIsSet,
  • toString,
  • unsetAddGroups,
  • unsetDelGroups

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JFrame (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now