/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/dynamodb/ |
D | layer2.py | 241 range_key = last_evaluated_key['RangeKeyElement'] 242 d['RangeKeyElement'] = self.dynamizer.encode(range_key) 245 def build_key_from_values(self, schema, hash_key, range_key=None): argument 271 if range_key is not None: 272 dynamodb_value = self.dynamizer.encode(range_key) 446 range_key = (range_key_name, 449 range_key = None 450 return Schema.create(hash_key, range_key) 452 def get_item(self, table, hash_key, range_key=None, argument 486 key = self.build_key_from_values(table.schema, hash_key, range_key) [all …]
|
D | table.py | 254 def get_item(self, hash_key, range_key=None, argument 285 return self.layer2.get_item(self, hash_key, range_key, 290 def has_item(self, hash_key, range_key=None, consistent_read=False): argument 319 self.get_item(hash_key, range_key=range_key, 328 def new_item(self, hash_key=None, range_key=None, attrs=None, argument 379 return item_class(self, hash_key, range_key, attrs)
|
D | schema.py | 51 def create(cls, hash_key, range_key=None): argument 73 if range_key is not None: 75 'AttributeName': range_key[0], 76 'AttributeType': range_key[1],
|
D | batch.py | 66 hash_key, range_key = key 69 range_key = None 71 hash_key, range_key) 119 hash_key, range_key = key 122 range_key = None 124 hash_key, range_key)
|
D | item.py | 39 def __init__(self, table, hash_key=None, range_key=None, attrs=None): argument 50 if range_key is None: 51 range_key = attrs.get(self._range_key_name, None) 52 self[self._range_key_name] = range_key 64 def range_key(self): member in Item
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/dynamodb/ |
D | test_layer2.py | 102 s1 = Schema.create(hash_key=('foo', 'N'), range_key=('bar', 'S')) 103 s2 = Schema.create(hash_key=('foo', 'N'), range_key=('bar', 'S')) 107 s1 = Schema.create(hash_key=('foo', 'N'), range_key=('bar', 'S')) 108 s2 = Schema.create(hash_key=('foo', 'N'), range_key=('bar', 'N')) 109 s3 = Schema.create(hash_key=('foo', 'S'), range_key=('baz', 'N')) 110 s4 = Schema.create(hash_key=('bar', 'N'), range_key=('baz', 'N'))
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/dynamodb/ |
D | test_layer2.py | 138 assert foobar_item.range_key == item1_range 143 assert foobar_item.range_key == 'bar' 163 assert item1_copy.range_key == item1.range_key 181 self.assertTrue(table.has_item(item1_key, range_key=item1_range, 404 self.assertFalse(table.has_item(item1_key, range_key=item1_range,
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/dynamodb2/ |
D | test_table.py | 37 range_key = RangeKey('hello') 38 self.assertEqual(range_key.name, 'hello') 39 self.assertEqual(range_key.data_type, STRING) 40 self.assertEqual(range_key.attr_type, 'RANGE') 42 self.assertEqual(range_key.definition(), { 46 self.assertEqual(range_key.schema(), {
|