@Test public void getAuthorityTests() { String[] authorities = new String[] { "localhost", "localhost:8080", "127.0.0.1", "127.0.0.1:8080" }; for (String authority : authorities) { TachyonURI uri = new TachyonURI("file", authority, "/a/b"); Assert.assertEquals(authority, uri.getAuthority()); } Assert.assertEquals(null, new TachyonURI("file", "", "/b/c").getAuthority()); Assert.assertEquals(null, new TachyonURI("file", null, "/b/c").getAuthority()); Assert.assertEquals(null, new TachyonURI("file: }
public String getAuthority() { return mUri.getAuthority(); }
TachyonURI implements Comparable<TachyonURI> { public String getAuthority() { return mUri.getAuthority(); } }
TachyonURI implements Comparable<TachyonURI> { public String getAuthority() { return mUri.getAuthority(); } TachyonURI(String pathStr);  TachyonURI(String scheme, String authority, String path);  TachyonURI(TachyonURI parent, TachyonURI child); }
TachyonURI implements Comparable<TachyonURI> { public String getAuthority() { return mUri.getAuthority(); } TachyonURI(String pathStr);  TachyonURI(String scheme, String authority, String path);  TachyonURI(TachyonURI parent, TachyonURI child); @Override int compareTo(TachyonURI other); @Override boolean equals(Object o); String getAuthority(); int getDepth(); String getHost(); String getName(); TachyonURI getParent(); String getPath(); int getPort(); String getScheme(); boolean hasAuthority(); @Override int hashCode(); boolean hasScheme(); boolean isAbsolute(); boolean isPathAbsolute(); TachyonURI join(String suffix); TachyonURI join(TachyonURI suffix); @Override String toString(); }
TachyonURI implements Comparable<TachyonURI> { public String getAuthority() { return mUri.getAuthority(); } TachyonURI(String pathStr);  TachyonURI(String scheme, String authority, String path);  TachyonURI(TachyonURI parent, TachyonURI child); @Override int compareTo(TachyonURI other); @Override boolean equals(Object o); String getAuthority(); int getDepth(); String getHost(); String getName(); TachyonURI getParent(); String getPath(); int getPort(); String getScheme(); boolean hasAuthority(); @Override int hashCode(); boolean hasScheme(); boolean isAbsolute(); boolean isPathAbsolute(); TachyonURI join(String suffix); TachyonURI join(TachyonURI suffix); @Override String toString(); static final String SEPARATOR; static final String CUR_DIR; }