Class: Aliyun::Odps::Table

Inherits:
Struct::Base show all
Extended by:
Modelable
Defined in:
lib/aliyun/odps/model/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Modelable

has_many

Methods inherited from Struct::Base

#client, #initialize, property, #update_attrs

Constructor Details

This class inherits a constructor from Aliyun::Odps::Struct::Base

Instance Attribute Details

#commentString

Returns:

  • (String)


17
# File 'lib/aliyun/odps/model/table.rb', line 17

property :comment, String

#creation_timeDateTime

Returns:

  • (DateTime)


28
# File 'lib/aliyun/odps/model/table.rb', line 28

property :creation_time, DateTime

#last_modifiedDateTime

Returns:

  • (DateTime)


29
# File 'lib/aliyun/odps/model/table.rb', line 29

property :last_modified, DateTime

#nameString

Returns:

  • (String)


15
# File 'lib/aliyun/odps/model/table.rb', line 15

property :name, String, required: true

#ownerString

Returns:

  • (String)


18
# File 'lib/aliyun/odps/model/table.rb', line 18

property :owner, String

#projectProject

Returns:



13
# File 'lib/aliyun/odps/model/table.rb', line 13

property :project, Project, required: true

#schemaTableSchema

Returns:



19
20
21
22
23
24
25
26
27
# File 'lib/aliyun/odps/model/table.rb', line 19

property :schema, TableSchema, init_with: ->(value) do
  case value
  when TableSchema
    value
  when Hash
    value = JSON.parse(value['__content__']) if value.key?('__content__')
    TableSchema.new(value)
  end
end

#table_idString

Returns:

  • (String)


16
# File 'lib/aliyun/odps/model/table.rb', line 16

property :table_id, String

Instance Method Details

#partitions(options = {}) ⇒ List

List partitions for table

Parameters:

  • options (Hash) (defaults to: {})

    options

Options Hash (options):

  • :marker (String)

    specify marker for paginate

  • :maxitems (String) — default: 1000

    specify maxitems in this request

Returns:

See Also:



32
33
34
# File 'lib/aliyun/odps/model/table.rb', line 32

def partitions(options = {})
  table_partitions.list(options)
end

#table_partitionsTablePartitions

Returns:



11
# File 'lib/aliyun/odps/model/table.rb', line 11

has_many :table_partitions