Class: UU::ObjectStore::ObjectSchema::ObjectSchemaIndexAttributes

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

Overview

DTO representing object schema index 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

- (Fixnum) current_size

Current size (in bytes) of index.

Returns:

  • (Fixnum)


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

def current_size
  @current_size
end

- (String) name

Index name.

Parameters:

  • (String)

Returns:

  • (String)


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

def name
  @name
end

- (Array<String>) object_attributes

List of uuObject attributes which compose created index. Each attribute may contain ASC or DESC keyword (e.g. "data.name DESC") to specify index order.

Parameters:

  • (Array<String>)

Returns:

  • (Array<String>)


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

def object_attributes
  @object_attributes
end

- (TrueClass, FalseClass) unique

Flag if index is created as unique index.

Parameters:

  • (TrueClass, FalseClass)

Returns:

  • (TrueClass, FalseClass)


19
20
21
# File 'uu_objectstore-0.6.5/lib/uu/object_store/object_schema/object_schema_index_attributes.rb', line 19

def unique
  @unique
end