agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
How to use external java libraries in Database
2+ messages / 2 participants
[nested] [flat]

* How to use external java libraries in Database
@ 2017-01-09 11:20 bb23850 <bb23850@gmail.com>
  2017-01-09 15:54 ` Re: How to use external java libraries in Database Rob Sargent <robjsargent@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: bb23850 @ 2017-01-09 11:20 UTC (permalink / raw)
  To: pgsql-sql

Hi,

I am trying to use Apache.Commons or Cern Colt libraries in my database.
Both these libraries are written Java and are available as .jar files. Is it
possible to pull those libraries into Postgres and use the methods in SQL as
functions.

For example I want to use cern.jet.stat.Descriptive.harmonicMean in SQL as
follows:

select harmonicMean(100, 1000);

Please suggest me how to do this.

thanks and regards

BB23850



--
View this message in context: http://postgresql.nabble.com/How-to-use-external-java-libraries-in-Database-tp5938143.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: How to use external java libraries in Database
  2017-01-09 11:20 How to use external java libraries in Database bb23850 <bb23850@gmail.com>
@ 2017-01-09 15:54 ` Rob Sargent <robjsargent@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Rob Sargent @ 2017-01-09 15:54 UTC (permalink / raw)
  To: pgsql-sql



On 01/09/2017 04:20 AM, bb23850 wrote:
> Hi,
>
> I am trying to use Apache.Commons or Cern Colt libraries in my database.
> Both these libraries are written Java and are available as .jar files. Is it
> possible to pull those libraries into Postgres and use the methods in SQL as
> functions.
>
> For example I want to use cern.jet.stat.Descriptive.harmonicMean in SQL as
> follows:
>
> select harmonicMean(100, 1000);
>
> Please suggest me how to do this.
>
> thanks and regards
>
> BB23850
>
>
>
> --
> View this message in context: http://postgresql.nabble.com/How-to-use-external-java-libraries-in-Database-tp5938143.html
> Sent from the PostgreSQL - sql mailing list archive at Nabble.com.
>
>
https://tada.github.io/pljava/


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2017-01-09 15:54 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-01-09 11:20 How to use external java libraries in Database bb23850 <bb23850@gmail.com>
2017-01-09 15:54 ` Rob Sargent <robjsargent@gmail.com>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox