bda-datastore/src/main/java/gr/ntua/ece/cslab/selis/bda/datastore/connectors/ConnectorFactory.java
public DatastoreConnector generateConnector(Connector conn){
        DatastoreConnector connector = null;
        if ( conn instanceof HBaseConnector ){
            connector = new DatastoreHBaseConnector( (HBaseConnector) conn);
        }
        else if (conn instanceof PostgresqlConnector) {
            connector = new DatastorePostgresqlConnector( (PostgresqlConnector) conn);
        }
        else if (conn instanceof LocalFSConnector) {
            connector = new DatastoreLocalFSConnector( (LocalFSConnector) conn);
        }
        return connector;
    }
/** Depending on the FS string format initialize a connector from a different class.
     *  Connectors are implemented for four different filesystems: local, HBase, HDFS, PostgreSQL. **/
Depending on the FS string format initialize a connector from a different class.
Connectors are implemented for four different filesystems: local, HBase, HDFS, PostgreSQL.
Depending on the FS string format initialize a connector from a different class . Connectors are implemented for four different filesystems : local HBase HDFS PostgreSQL .
public DatastoreConnector generateConnector(Connector conn){
        DatastoreConnector connector = null;
        if ( conn instanceof HBaseConnector ){
            connector = new DatastoreHBaseConnector( (HBaseConnector) conn);
        }
        else if (conn instanceof PostgresqlConnector) {
            connector = new DatastorePostgresqlConnector( (PostgresqlConnector) conn);
        }
        else if (conn instanceof LocalFSConnector) {
            connector = new DatastoreLocalFSConnector( (LocalFSConnector) conn);
        }
        return connector;
    }
public DatastoreConnector generateConnector ( Connector conn ) { DatastoreConnector connector = null ; if ( conn instanceof HBaseConnector ) { connector = new DatastoreHBaseConnector ( ( HBaseConnector ) conn ) ; } else if ( conn instanceof PostgresqlConnector ) { connector = new DatastorePostgresqlConnector ( ( PostgresqlConnector ) conn ) ; } else if ( conn instanceof LocalFSConnector ) { connector = new DatastoreLocalFSConnector ( ( LocalFSConnector ) conn ) ; } return connector ; }
Depending on the FS string format initialize a connector from a different class.
Depending on the FS string format initialize a connector from a different class .