예제 #1
0
 def find(cls, conditions):
     column_family_map = db.get_column_family_map(cls)
     index_clause = db.create_index_clause(conditions);
     return column_family_map.get_indexed_slices(index_clause)
예제 #2
0
 def store(cls, instance):
     column_family_map = db.get_column_family_map(cls)
     instance.key = cls.generateKey()
     column_family_map.insert(instance)
     return instance.key
예제 #3
0
 def get(cls, key):
     column_family_map = db.get_column_family_map(cls)
     return column_family_map.get(key)
예제 #4
0
 def all(cls):
     column_family_map = db.get_column_family_map(cls)
     return column_family_map.get_range()