Class: Aliyun::Odps::Table
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods included from Modelable
has_many
#client, #initialize, property, #update_attrs
Instance Attribute Details
17
|
# File 'lib/aliyun/odps/model/table.rb', line 17
property :comment, String
|
#creation_time ⇒ DateTime
28
|
# File 'lib/aliyun/odps/model/table.rb', line 28
property :creation_time, DateTime
|
#last_modified ⇒ DateTime
29
|
# File 'lib/aliyun/odps/model/table.rb', line 29
property :last_modified, DateTime
|
#name ⇒ String
15
|
# File 'lib/aliyun/odps/model/table.rb', line 15
property :name, String, required: true
|
#owner ⇒ String
18
|
# File 'lib/aliyun/odps/model/table.rb', line 18
property :owner, String
|
13
|
# File 'lib/aliyun/odps/model/table.rb', line 13
property :project, Project, required: true
|
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_id ⇒ 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
32
33
34
|
# File 'lib/aliyun/odps/model/table.rb', line 32
def partitions(options = {})
table_partitions.list(options)
end
|
11
|
# File 'lib/aliyun/odps/model/table.rb', line 11
has_many :table_partitions
|