Package io.deephaven.uri
Class RemoteUri
java.lang.Object
io.deephaven.uri.StructuredUriBase
io.deephaven.uri.DeephavenUriBase
io.deephaven.uri.RemoteUri
- All Implemented Interfaces:
DeephavenUri
,StructuredUri
A remote Deephaven URI represents a structured link for resolving remote Deephaven resources. Is composed of a
target
and remote uri
.
For example, dh://host/scope/my_table
.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.uri.StructuredUri
StructuredUri.Visitor
-
Field Summary
Fields inherited from interface io.deephaven.uri.DeephavenUri
LOCAL_SCHEME, PLAINTEXT_SCHEME, SECURE_SCHEME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isValidScheme
(String scheme) static boolean
isWellFormed
(URI uri) static RemoteUri
of
(DeephavenTarget target, StructuredUri uri) static RemoteUri
Parses theuri
into a remote URI.abstract DeephavenTarget
target()
The Deephaven target.final String
toString()
The URI string.abstract StructuredUri
uri()
The inner URI.final <V extends StructuredUri.Visitor>
Vwalk
(V visitor) Methods inherited from class io.deephaven.uri.DeephavenUriBase
toURI
Methods inherited from class io.deephaven.uri.StructuredUriBase
target
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.deephaven.uri.StructuredUri
target
-
Constructor Details
-
RemoteUri
public RemoteUri()
-
-
Method Details
-
of
-
isValidScheme
-
isWellFormed
-
of
Parses theuri
into a remote URI.For Deephaven scheme formats, the format looks the same as the local versions, except with a host specified. For example,
dh://host/scope/my_table
.The proxy format is of the form
dh://host?uri=${innerUri}
; whereinnerUri
is the URI to be proxied. WheninnerUri
is a Deephaven scheme, is does not need to be URL encoded; for example,dh://gateway?uri=dh://host/scope/my_table
. Inner URIs that aren't a Deephaven scheme need to be URL encoded; for example,dh://gateway?uri=parquet%3A%2F%2F%2Fdata%2Ftest.parquet
.- Parameters:
uri
- the URI- Returns:
- the remote URI
-
target
The Deephaven target.- Returns:
- the target
-
uri
The inner URI. As opposed toDeephavenUriBase.toURI()
, which representsthis
as a URI.- Returns:
- the inner URI
-
walk
-
toString
Description copied from interface:StructuredUri
The URI string.- Specified by:
toString
in interfaceStructuredUri
- Specified by:
toString
in classDeephavenUriBase
- Returns:
- the URI string
-