[
https://issues.apache.org/jira/browse/CALCITE-2209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16484419#comment-16484419
]
Rong Rong commented on CALCITE-2209:
------------------------------------
That's a good question. I think ObjectMapper is using openStream method in
java.net.URL. which is handleded by any instance of java.net.URLStreamHandler
that handles the particular protocol.
Digging into the documentation:
* In most cases, an instance of a {@code URLStreamHandler}
* subclass is not created directly by an application. Rather, the
* first time a protocol name is encountered when constructing a
* {@code URL}, the appropriate stream protocol handler is
* automatically loaded.
Does that answer your question?
> Support loading JSON model file through URL
> -------------------------------------------
>
> Key: CALCITE-2209
> URL: https://issues.apache.org/jira/browse/CALCITE-2209
> Project: Calcite
> Issue Type: New Feature
> Components: core
> Reporter: Shuyi Chen
> Assignee: Shuyi Chen
> Priority: Major
>
> Currently, Calcite only support loading JSON model file through inline or
> local file. The Jira attemps to extend it to support loading JSON model file
> through URL, so users can implement their own URLStreamHandlerFactory to read
> the JSON model file from e.g., HDFS or etc.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)