Class: RedshiftConnector::DataFileBundleParams

Inherits:
Object
  • Object
show all
Defined in:
lib/redshift_connector/data_file_bundle_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket: nil, schema:, table:, txn_id: nil, logger: RedshiftConnector.logger) ⇒ DataFileBundleParams

Returns a new instance of DataFileBundleParams.



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/redshift_connector/data_file_bundle_params.rb', line 5

def initialize(
  bucket: nil,
  schema:,
  table:,
  txn_id: nil,
  logger: RedshiftConnector.logger
)
  @bucket = bucket
  @schema = schema
  @table = table
  @txn_id = txn_id
  @logger = logger
end

Instance Attribute Details

#bucketObject (readonly)

Returns the value of attribute bucket.



19
20
21
# File 'lib/redshift_connector/data_file_bundle_params.rb', line 19

def bucket
  @bucket
end

#loggerObject (readonly)

Returns the value of attribute logger.



23
24
25
# File 'lib/redshift_connector/data_file_bundle_params.rb', line 23

def logger
  @logger
end

#schemaObject (readonly)

Returns the value of attribute schema.



20
21
22
# File 'lib/redshift_connector/data_file_bundle_params.rb', line 20

def schema
  @schema
end

#tableObject (readonly)

Returns the value of attribute table.



21
22
23
# File 'lib/redshift_connector/data_file_bundle_params.rb', line 21

def table
  @table
end

#txn_idObject (readonly)

Returns the value of attribute txn_id.



22
23
24
# File 'lib/redshift_connector/data_file_bundle_params.rb', line 22

def txn_id
  @txn_id
end