Strabon

diff strabon @ 28:bf7e497a0b9e

Added QueryDir op, modified poms to include latest jdbc driver (MonetDB-11.7.8-NOA_20120228a_SQL_C_Strabon.tar.bz2 with 43531:856fbc4256ff patch)
author Kostis Kyzirakos <kkyzir@di.uoa.gr>
date Wed Feb 29 13:41:48 2012 +0200 (2012-02-29)
parents
children 070de580b6cc
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/strabon	Wed Feb 29 13:41:48 2012 +0200
     1.3 @@ -0,0 +1,27 @@
     1.4 +#! /bin/bash
     1.5 +
     1.6 +dbName=$1
     1.7 +dirs=$2
     1.8 +
     1.9 +# Evaluates a query using Strabon that is stored in $dir
    1.10 +#dir='/home/ggarbis/workspaces/Strabon-workspace/Strabon/jars/target'
    1.11 +dir='/home/kkyzir/teleios/nkua/Strabon/jars/target'
    1.12 +
    1.13 +# Arguments for QueryDir
    1.14 +HOST='localhost'
    1.15 +PORT='50000'
    1.16 +DATABASE=$dbName
    1.17 +USERNAME='monetdb'
    1.18 +PASSWORD='monetdb'
    1.19 +FORMAT=''
    1.20 +DIRS=$2
    1.21 +
    1.22 +# Construct classpath with dependencies
    1.23 +cd $dir &&
    1.24 +for file in `ls -1 *.jar`;
    1.25 +do 
    1.26 +	myVar=$myVar./$file":";
    1.27 +done;
    1.28 +
    1.29 +# Evaluate a query
    1.30 +java -Xmx5000M -cp $myVar eu.earthobservatory.runtime.monetdb.QueryDir $HOST $PORT $DATABASE $USERNAME $PASSWORD "$DIRS" $FORMAT