class AWS::SimpleDB::DomainMetadata


}
:attribute_name_count => 3
:item_names_size_bytes => 3,
:attribute_values_size_bytes => 25,
:attribute_value_count => 6,
:item_count => 1,
:attribute_names_size_bytes => 12,
:timestamp => 1300841880,
{
# the hash returned above might look like:<br><br>sdb.domains.metadata.to_h
sdb = SimpleDB.new
@example
the number of items, etc.
SimpleDB can report on the amount of data stored in a domain,

def attribute_name_count

Returns:
  • (Integer) - The number of unique attribute names in the
def attribute_name_count
  self.to_h[:attribute_name_count]
end

def attribute_names_size_bytes

Returns:
  • (Integer) - The total size of all unique attribute names,
def attribute_names_size_bytes
  self.to_h[:attribute_names_size_bytes]
end

def attribute_value_count

Returns:
  • (Integer) - The number of all attribute name/value pairs in
def attribute_value_count
  self.to_h[:attribute_value_count]
end

def attribute_values_size_bytes

Returns:
  • (Integer) - The total size of all attribute values, in bytes.
def attribute_values_size_bytes
  self.to_h[:attribute_values_size_bytes]
end

def initialize domain, options = {}

Returns:
  • (DomainMetadata) -

Parameters:
  • domain (Domain) -- The domain to fetch metadata for.
def initialize domain, options = {}
  @domain = domain
  super
end

def item_count

Returns:
  • (Integer) - The number of all items in the {#domain}.
def item_count
  self.to_h[:item_count]
end

def item_names_size_bytes

Returns:
  • (Integer) - The total size of all item names in the {#domain},
def item_names_size_bytes
  self.to_h[:item_names_size_bytes]
end

def timestamp

Returns:
  • (Integer) - The data and time when metadata was calculated
def timestamp
  self.to_h[:timestamp]
end

def to_h

Returns:
  • (Hash) - A hash of all of the metadata attributes for
def to_h
  meta = client.domain_metadata(:domain_name => domain.name)
  ATTRIBUTES.inject({}) {|h,attr| h[attr] = meta.send(attr); h }
end