Code example for Connection

Methods: setAutoCommit, setTransactionIsolation

0
  /** (@inheritDoc) */ 
  public void configure(Configuration conf) throws Exception {
    LOG.trace("Input split configured");
    vtconfig = new VerticaConfiguration(conf);
    connection = vtconfig.getConnection(false);
    connection.setAutoCommit(true);
    connection.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
  } 
 
  /** 
   * Return the parameters used for input query 
   *  
   */ 
  public List<Object> getSegmentParams() {
    return segmentParams;
  } 
 
  /** 
   * Run the query that, when executed returns input for the mapper 
   *  
   * @throws Exception