java.lang.Object
org.apache.arrow.flight.Location
A URI where a Flight stream is available.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LocationforGrpcDomainSocket(String path) Construct a URI for a Flight+gRPC server over a Unix domain socket.static LocationforGrpcInsecure(String host, int port) Construct a URI for a Flight+gRPC server without transport security.static LocationforGrpcTls(String host, int port) Construct a URI for a Flight+gRPC server with transport security.getUri()inthashCode()static LocationConstruct a special URI to indicate to clients that they may fetch data by reusing an existing connection to a Flight RPC server.Helper method to turn this Location into a SocketAddress.toString()
-
Constructor Details
-
Location
Constructs a new instance.- Parameters:
uri- the URI of the Flight service- Throws:
IllegalArgumentException- if the URI scheme is unsupportedURISyntaxException
-
Location
Construct a new instance from an existing URI.- Parameters:
uri- the URI of the Flight service
-
-
Method Details
-
getUri
-
toSocketAddress
Helper method to turn this Location into a SocketAddress.- Returns:
- null if could not be converted
-
reuseConnection
Construct a special URI to indicate to clients that they may fetch data by reusing an existing connection to a Flight RPC server. -
forGrpcInsecure
Construct a URI for a Flight+gRPC server without transport security.- Throws:
IllegalArgumentException- if the constructed URI is invalid.
-
forGrpcTls
Construct a URI for a Flight+gRPC server with transport security.- Throws:
IllegalArgumentException- if the constructed URI is invalid.
-
forGrpcDomainSocket
Construct a URI for a Flight+gRPC server over a Unix domain socket.- Throws:
IllegalArgumentException- if the constructed URI is invalid.
-
toString
-
equals
-
hashCode
public int hashCode()
-