ext-data-source/test/src/main/java/com/cloudera/impala/extdatasource/AllTypesDataSource.java
/**
   * Initializes the batch size and stores the table schema.
   */
Initializes the batch size and stores the table schema.
Initializes the batch size and stores the table schema .
@Override
  public TOpenResult open(TOpenParams params) {
    Preconditions.checkState(state_ == DataSourceState.CREATED);
    state_ = DataSourceState.OPENED;
    batchSize_ = INITIAL_BATCH_SIZE;
    schema_ = params.getRow_schema();
    scanHandle_ = UUID.randomUUID().toString();
    return new TOpenResult(STATUS_OK).setScan_handle(scanHandle_);
  }
@ Override public TOpenResult open ( TOpenParams params ) { Preconditions . checkState ( state_ == DataSourceState . CREATED ) ; state_ = DataSourceState . OPENED ; batchSize_ = INITIAL_BATCH_SIZE ; schema_ = params . getRow_schema ( ) ; scanHandle_ = UUID . randomUUID ( ) . toString ( ) ; return new TOpenResult ( STATUS_OK ) . setScan_handle ( scanHandle_ ) ; }
Initializes the batch size and stores the table schema.
Initializes the batch size and stores the table schema .