Examples of AccessURI


Examples of org.apache.sentry.core.model.db.AccessURI

  public void testBadUriNoFilePrefix() {
    new AccessURI("/");
  }
  @Test(expected=IllegalArgumentException.class)
  public void testBadUriIncorrectFilePrefix() {
    new AccessURI("file:/some/path");
  }
View Full Code Here

Examples of org.apache.sentry.core.model.db.AccessURI

  public void testBadUriIncorrectFilePrefix() {
    new AccessURI("file:/some/path");
  }
  @Test(expected=IllegalArgumentException.class)
  public void testBadUriIncorrectHdfsPrefix() {
    new AccessURI("hdfs:/some/path");
  }
View Full Code Here

Examples of org.apache.sentry.core.model.db.AccessURI

    case Table:
      return new Table(name);
    case View:
      return new View(name);
    case URI:
      return new AccessURI(name);
    default:
      return null;
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.