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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisValidScheme(String scheme) static booleanisWellFormed(URI uri) static RemoteUriof(DeephavenTarget target, StructuredUri uri) static RemoteUriParses theuriinto a remote URI.abstract DeephavenTargettarget()The Deephaven target.final StringtoString()The URI string.abstract StructuredUriuri()The inner URI.final <V extends StructuredUri.Visitor>
Vwalk(V visitor) Methods inherited from class io.deephaven.uri.DeephavenUriBase
toURIMethods inherited from class io.deephaven.uri.StructuredUriBase
targetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.deephaven.uri.StructuredUri
target
-
Constructor Details
-
RemoteUri
public RemoteUri()
-
-
Method Details
-
of
-
isValidScheme
-
isWellFormed
-
of
Parses theuriinto 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}; whereinnerUriis the URI to be proxied. WheninnerUriis 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 representsthisas a URI.- Returns:
- the inner URI
-
walk
-
toString
Description copied from interface:StructuredUriThe URI string.- Specified by:
toStringin interfaceStructuredUri- Specified by:
toStringin classDeephavenUriBase- Returns:
- the URI string
-