|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.netflix.astyanax.mapping.MappingUtil
@Deprecated public class MappingUtil
Higher level mapping functions. Methods that behave similar to a Map.
Constructor Summary | |
---|---|
MappingUtil(Keyspace keyspace)
Deprecated. |
|
MappingUtil(Keyspace keyspace,
AnnotationSet<?,?> annotationSet)
Deprecated. |
|
MappingUtil(Keyspace keyspace,
MappingCache cache)
Deprecated. |
|
MappingUtil(Keyspace keyspace,
MappingCache cache,
AnnotationSet<?,?> annotationSet)
Deprecated. |
Method Summary | ||
---|---|---|
|
get(ColumnFamily<K,java.lang.String> columnFamily,
K id,
java.lang.Class<T> itemClass)
Deprecated. Get the specified item by its key/id |
|
|
getAll(ColumnFamily<K,java.lang.String> columnFamily,
java.lang.Class<T> itemClass)
Deprecated. Get all rows of the specified item |
|
|
getMapping(java.lang.Class<T> clazz)
Deprecated. Return the mapping instance for the given class |
|
|
put(ColumnFamily<K,java.lang.String> columnFamily,
T item)
Deprecated. Add/update the given item |
|
|
remove(ColumnFamily<K,java.lang.String> columnFamily,
T item)
Deprecated. Remove the given item |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MappingUtil(Keyspace keyspace)
keyspace
- keyspace to usepublic MappingUtil(Keyspace keyspace, AnnotationSet<?,?> annotationSet)
keyspace
- keyspace to useannotationSet
- annotation set to usepublic MappingUtil(Keyspace keyspace, MappingCache cache)
keyspace
- keyspace to usecache
- cache to usepublic MappingUtil(Keyspace keyspace, MappingCache cache, AnnotationSet<?,?> annotationSet)
keyspace
- keyspace to usecache
- cache to useannotationSet
- annotation set to useMethod Detail |
---|
public <T,K> void remove(ColumnFamily<K,java.lang.String> columnFamily, T item) throws java.lang.Exception
columnFamily
- column family of the itemitem
- the item to remove
java.lang.Exception
- errorspublic <T,K> void put(ColumnFamily<K,java.lang.String> columnFamily, T item) throws java.lang.Exception
columnFamily
- column family of the itemitem
- the item to add/update
java.lang.Exception
- errorspublic <T,K> T get(ColumnFamily<K,java.lang.String> columnFamily, K id, java.lang.Class<T> itemClass) throws java.lang.Exception
columnFamily
- column family of the itemid
- id/key of the itemitemClass
- item's class
java.lang.Exception
- errorspublic <T,K> java.util.List<T> getAll(ColumnFamily<K,java.lang.String> columnFamily, java.lang.Class<T> itemClass) throws java.lang.Exception
columnFamily
- column family of the itemitemClass
- item's class
java.lang.Exception
- errorspublic <T> Mapping<T> getMapping(java.lang.Class<T> clazz)
clazz
- the class
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |