Class: UU::ObjectStore::ObjectSchema::ObjectSchemaAttributes

Inherits:
UU::OS::REST::DTO show all
Defined in:
uu_objectstore-0.6.5/lib/uu/object_store/object_schema/object_schema_attributes.rb

Overview

DTO representing object schema attributes.

Instance Attribute Summary (collapse)

Method Summary

Methods inherited from UU::OS::REST::DTO

#initialize, #to_hash, #to_json

Constructor Details

This class inherits a constructor from UU::OS::REST::DTO

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class UU::OS::REST::DTO

Instance Attribute Details

- (String) code

Code of the object schema.

Returns:

  • (String)


21
22
23
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_schema/object_schema_attributes.rb', line 21

def code
  @code
end

- (Fixnum) current_count

Current count of uuObjects stored within schema.

Returns:

  • (Fixnum)


29
30
31
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_schema/object_schema_attributes.rb', line 29

def current_count
  @current_count
end

- (Fixnum) current_size

Current size (in megabytes) of data stored within schema. Size includes not only size of stored uuObjects but also size of corresponding indexes and internal meta-data.

Returns:

  • (Fixnum)


34
35
36
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_schema/object_schema_attributes.rb', line 34

def current_size
  @current_size
end

- (String) data_key_attribute

Name of alternative data key attribute to be used instead of default data_key attribute of uuObject.

Returns:

  • (String)


43
44
45
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_schema/object_schema_attributes.rb', line 43

def data_key_attribute
  @data_key_attribute
end

- (String) description

Description of the object schema.

Returns:

  • (String)


25
26
27
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_schema/object_schema_attributes.rb', line 25

def description
  @description
end

- (Fixnum) max_object_size

Maximal size of uuObjects (in bytes) stored within schema.

Returns:

  • (Fixnum)


47
48
49
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_schema/object_schema_attributes.rb', line 47

def max_object_size
  @max_object_size
end

- (Fixnum) max_result_page_size

Maximal size of result page (number of uuObjects returned by query in single page).

Returns:

  • (Fixnum)


51
52
53
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_schema/object_schema_attributes.rb', line 51

def max_result_page_size
  @max_result_page_size
end

- (String) name

Name of the object schema.

Returns:

  • (String)


17
18
19
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_schema/object_schema_attributes.rb', line 17

def name
  @name
end

- (UU::OS::UESURI) object_store_uri

URI of object store to which object schema belongs.

Returns:



38
39
40
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_schema/object_schema_attributes.rb', line 38

def object_store_uri
  @object_store_uri
end

- (UU::OS::UESURI) uri

URI of the object schema.

Returns:



13
14
15
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_schema/object_schema_attributes.rb', line 13

def uri
  @uri
end