calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Hyde <jh...@apache.org>
Subject Re: storage of schema (json model) in a database
Date Fri, 09 Mar 2018 19:00:35 GMT
Maybe you could call https://docs.oracle.com/javase/8/docs/api/java/net/URL.html#setURLStreamHandlerFactory-java.net.URLStreamHandlerFactory-
<https://docs.oracle.com/javase/8/docs/api/java/net/URL.html#setURLStreamHandlerFactory-java.net.URLStreamHandlerFactory->
with your own custom handler. I haven’t tried it.

> On Mar 9, 2018, at 2:03 AM, asma zgolli <zgolliasma@gmail.com> wrote:
> 
> hello ,
> 
> 
> I wish to use calcite in my project and I wish to store schema definition
> (json models) in a database , manage them and use the stored schema to
> connect to calcite using java driver.
> 
> example :
> 
> instead of : DriverManager.getConnection(
> "jdbc:calcite:model=target/classes/model.json")
> 
> I wish to be able to do the following call :
> 
> DriverManager.getConnection(
> "jdbc:calcite:model=hdfs://localhost:someport/somepath/model.json")
> 
> or :
> DriverManager.getConnection("jdbc:calcite:model=somemongodb_document")
> 
> is that possible ?
> 
> thank you for your help ,
> 
> I'm new to calcite and I think it suits my needs so far
> -- 
> best regards
> Asma ZGOLLI
> 
> PhD student in data engineering - computer science
> Tel : (+33) 07 52 95 04 45


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message