Codota Logo
MSentryPrivilege.setURI
Code IndexAdd Codota to your IDE (free)

How to use
setURI
method
in
org.apache.sentry.provider.db.service.model.MSentryPrivilege

Best Java code snippets using org.apache.sentry.provider.db.service.model.MSentryPrivilege.setURI (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: apache/incubator-sentry

priv.setTableName((String) privObj[3]);
priv.setColumnName((String) privObj[4]);
priv.setURI((String) privObj[5]);
priv.setAction((String) privObj[6]);
priv.setGrantOption((Boolean) privObj[7]);
origin: apache/sentry

my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9000/path/to/../../other");
assertFalse(my.implies(your));
my.setURI("file:///path");
your.setURI("file:///path/to/../../other");
assertFalse(my.implies(your));
my.setURI("blah");
your.setURI("hdfs://namenode:9000/path/to/some/dir");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path/to/some/dir");
your.setURI("blah");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("file:///path/to/some/dir");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("file://namenode:9000/path/to/some/dir");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode1:9000/path");
your.setURI("hdfs://namenode2:9000/path");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9001/path");
assertFalse(my.implies(your));
origin: apache/incubator-sentry

my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9000/path/to/../../other");
assertFalse(my.implies(your));
my.setURI("file:///path");
your.setURI("file:///path/to/../../other");
assertFalse(my.implies(your));
my.setURI("blah");
your.setURI("hdfs://namenode:9000/path/to/some/dir");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path/to/some/dir");
your.setURI("blah");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("file:///path/to/some/dir");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("file://namenode:9000/path/to/some/dir");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode1:9000/path");
your.setURI("hdfs://namenode2:9000/path");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9001/path");
assertFalse(my.implies(your));
origin: apache/incubator-sentry

your.setServerName("server1");
your.setAction(actionMap[actions][1]);
my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9000/path");
assertTrue(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9000/path/to/some/dir");
assertTrue(my.implies(your));
my.setURI("file:///path");
your.setURI("file:///path");
assertTrue(my.implies(your));
my.setURI("file:///path");
your.setURI("file:///path/to/some/dir");
assertTrue(my.implies(your));
my.setURI("");
your.setURI("file:///path");
assertTrue(my.implies(your));
origin: apache/sentry

your.setServerName("server1");
your.setAction(actionMap[actions][1]);
my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9000/path");
assertTrue(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9000/path/to/some/dir");
assertTrue(my.implies(your));
my.setURI("file:///path");
your.setURI("file:///path");
assertTrue(my.implies(your));
my.setURI("file:///path");
your.setURI("file:///path/to/some/dir");
assertTrue(my.implies(your));
my.setURI("");
your.setURI("file:///path");
assertTrue(my.implies(your));
origin: apache/sentry

/**
 * Converts thrift object to model object. Additionally does normalization
 * such as trimming whitespace and setting appropriate case.
 * @throws SentryInvalidInputException
 */
private MSentryPrivilege convertToMSentryPrivilege(TSentryPrivilege privilege)
  throws SentryInvalidInputException {
 MSentryPrivilege mSentryPrivilege = new MSentryPrivilege();
 mSentryPrivilege.setServerName(toNULLCol(safeTrimLower(privilege.getServerName())));
 mSentryPrivilege.setDbName(toNULLCol(safeTrimLower(privilege.getDbName())));
 mSentryPrivilege.setTableName(toNULLCol(safeTrimLower(privilege.getTableName())));
 mSentryPrivilege.setColumnName(toNULLCol(safeTrimLower(privilege.getColumnName())));
 mSentryPrivilege.setPrivilegeScope(safeTrim(privilege.getPrivilegeScope()));
 mSentryPrivilege.setAction(toNULLCol(safeTrimLower(privilege.getAction())));
 mSentryPrivilege.setCreateTime(System.currentTimeMillis());
 mSentryPrivilege.setURI(toNULLCol(safeTrim(privilege.getURI())));
 if ( !privilege.getGrantOption().equals(TSentryGrantOption.UNSET) ) {
  mSentryPrivilege.setGrantOption(Boolean.valueOf(privilege.getGrantOption().toString()));
 } else {
  mSentryPrivilege.setGrantOption(null);
 }
 return mSentryPrivilege;
}
origin: apache/incubator-sentry

/**
 * Converts thrift object to model object. Additionally does normalization
 * such as trimming whitespace and setting appropriate case.
 * @throws SentryInvalidInputException
 */
private MSentryPrivilege convertToMSentryPrivilege(TSentryPrivilege privilege)
  throws SentryInvalidInputException {
 MSentryPrivilege mSentryPrivilege = new MSentryPrivilege();
 mSentryPrivilege.setServerName(toNULLCol(safeTrimLower(privilege.getServerName())));
 mSentryPrivilege.setDbName(toNULLCol(safeTrimLower(privilege.getDbName())));
 mSentryPrivilege.setTableName(toNULLCol(safeTrimLower(privilege.getTableName())));
 mSentryPrivilege.setColumnName(toNULLCol(safeTrimLower(privilege.getColumnName())));
 mSentryPrivilege.setPrivilegeScope(safeTrim(privilege.getPrivilegeScope()));
 mSentryPrivilege.setAction(toNULLCol(safeTrimLower(privilege.getAction())));
 mSentryPrivilege.setCreateTime(System.currentTimeMillis());
 mSentryPrivilege.setURI(toNULLCol(safeTrim(privilege.getURI())));
 if ( !privilege.getGrantOption().equals(TSentryGrantOption.UNSET) ) {
  mSentryPrivilege.setGrantOption(Boolean.valueOf(privilege.getGrantOption().toString()));
 } else {
  mSentryPrivilege.setGrantOption(null);
 }
 return mSentryPrivilege;
}
private static String safeTrim(String s) {
origin: apache/sentry

hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryConstants.NULL_COL);
hivePrivilege.setColumnName(SentryConstants.NULL_COL);
hivePrivilege.setGrantOption(true);
origin: apache/sentry

hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryConstants.NULL_COL);
hivePrivilege.setColumnName(SentryConstants.NULL_COL);
hivePrivilege.setGrantOption(true);
origin: apache/incubator-sentry

hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryStore.NULL_COL);
hivePrivilege.setColumnName(SentryStore.NULL_COL);
hivePrivilege.setGrantOption(true);
origin: apache/incubator-sentry

hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryStore.NULL_COL);
hivePrivilege.setColumnName(SentryStore.NULL_COL);
hivePrivilege.setGrantOption(true);
origin: apache/sentry

hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryConstants.NULL_COL);
hivePrivilege.setColumnName(SentryConstants.NULL_COL);
hivePrivilege.setGrantOption(true);
origin: apache/incubator-sentry

hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryStore.NULL_COL);
hivePrivilege.setColumnName(SentryStore.NULL_COL);
hivePrivilege.setGrantOption(true);
origin: apache/sentry

hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryConstants.NULL_COL);
hivePrivilege.setColumnName(SentryConstants.NULL_COL);
hivePrivilege.setGrantOption(true);
origin: apache/sentry

hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryConstants.NULL_COL);
hivePrivilege.setColumnName(SentryConstants.NULL_COL);
hivePrivilege.setGrantOption(true);
org.apache.sentry.provider.db.service.modelMSentryPrivilegesetURI

Popular methods of MSentryPrivilege

  • <init>
  • getAction
  • getColumnName
  • getDbName
  • getGrantOption
  • getServerName
  • getTableName
  • implies
    Return true if this privilege implies other privilege Otherwise, return false
  • setAction
  • setColumnName
  • setDbName
  • setGrantOption
  • setDbName,
  • setGrantOption,
  • setPrivilegeScope,
  • setServerName,
  • setTableName,
  • appendPrincipal,
  • appendRole,
  • getCreateTime,
  • getPrivilegeScope

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • onCreateOptionsMenu (Activity)
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
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