bda-datastore/src/main/java/gr/ntua/ece/cslab/selis/bda/datastore/connectors/DatastoreLocalFSConnector.java
public DimensionTable describe(String args) throws IOException {
        String table;
        if (args.matches(""))
            table = conn.getFS() + "/EventLog.csv";
        else
            table = conn.getFS() + "/" + args + ".csv";
        BufferedReader reader = new BufferedReader(new FileReader(table));
        String[] fields = reader.readLine().split("\t");
        reader.close();
        return new DimensionTable(args,
                new DimensionTableSchema(Arrays.asList(fields), new LinkedList<>(), ""),
                new LinkedList<>());
    }
// get column names for table args
get column names for table args
get column names for table args
public DimensionTable describe(String args) throws IOException {
        String table;
        if (args.matches(""))
            table = conn.getFS() + "/EventLog.csv";
        else
            table = conn.getFS() + "/" + args + ".csv";
        BufferedReader reader = new BufferedReader(new FileReader(table));
        String[] fields = reader.readLine().split("\t");
        reader.close();
        return new DimensionTable(args,
                new DimensionTableSchema(Arrays.asList(fields), new LinkedList<>(), ""),
                new LinkedList<>());
    }
public DimensionTable describe ( String args ) throws IOException { String table ; if ( args . matches ( "" ) ) table = conn . getFS ( ) + "/EventLog.csv" ; else table = conn . getFS ( ) + "/" + args + ".csv" ; BufferedReader reader = new BufferedReader ( new FileReader ( table ) ) ; String [ ] fields = reader . readLine ( ) . split ( "\t" ) ; reader . close ( ) ; return new DimensionTable ( args , new DimensionTableSchema ( Arrays . asList ( fields ) , new LinkedList < > ( ) , "" ) , new LinkedList < > ( ) ) ; }
get column names for table args
get column names for table args