public class CompositeColumnEntityMapper
extends java.lang.Object
| Constructor and Description |
|---|
CompositeColumnEntityMapper(java.lang.reflect.Field field) |
| Modifier and Type | Method and Description |
|---|---|
void |
fillColumnMutation(com.netflix.astyanax.ColumnListMutation<java.nio.ByteBuffer> clm,
java.lang.Object entity)
Add a column based on the provided entity
|
void |
fillMutationBatch(com.netflix.astyanax.ColumnListMutation<java.nio.ByteBuffer> clm,
java.lang.Object entity)
Iterate through the list and create a column for each element
|
void |
fillMutationBatchForDelete(com.netflix.astyanax.ColumnListMutation<java.nio.ByteBuffer> clm,
java.lang.Object entity) |
java.lang.Object |
fromColumn(com.netflix.astyanax.model.Column<java.nio.ByteBuffer> c)
Return an object from the column
|
java.lang.Object |
fromCqlColumns(com.netflix.astyanax.model.ColumnList<java.nio.ByteBuffer> c) |
static java.nio.ByteBuffer |
getBytes(java.nio.ByteBuffer bb,
int length) |
java.lang.String |
getComparatorType()
Return the cassandra comparator type for this composite structure
|
java.nio.ByteBuffer[] |
getQueryEndpoints(java.util.Collection<com.netflix.astyanax.query.ColumnPredicate> predicates) |
static int |
getShortLength(java.nio.ByteBuffer bb) |
java.lang.String |
getValueType() |
static java.nio.ByteBuffer |
getWithShortLength(java.nio.ByteBuffer bb) |
void |
setEntityFieldsFromColumnName(java.lang.Object entity,
java.nio.ByteBuffer columnName) |
boolean |
setField(java.lang.Object entity,
com.netflix.astyanax.model.ColumnList<java.nio.ByteBuffer> columns)
Set the collection field using the provided column list of embedded entities
|
boolean |
setFieldFromCql(java.lang.Object entity,
com.netflix.astyanax.model.ColumnList<java.nio.ByteBuffer> columns) |
java.nio.ByteBuffer |
toColumnName(java.lang.Object obj)
Return the column name byte buffer for this entity
|
public CompositeColumnEntityMapper(java.lang.reflect.Field field)
public void fillMutationBatch(com.netflix.astyanax.ColumnListMutation<java.nio.ByteBuffer> clm,
java.lang.Object entity)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException
clm - entity - java.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionpublic void fillMutationBatchForDelete(com.netflix.astyanax.ColumnListMutation<java.nio.ByteBuffer> clm,
java.lang.Object entity)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException
java.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionpublic void fillColumnMutation(com.netflix.astyanax.ColumnListMutation<java.nio.ByteBuffer> clm,
java.lang.Object entity)
clm - entity - public java.nio.ByteBuffer toColumnName(java.lang.Object obj)
obj - public boolean setField(java.lang.Object entity,
com.netflix.astyanax.model.ColumnList<java.nio.ByteBuffer> columns)
throws java.lang.Exception
entity - name - column - java.lang.Exceptionpublic boolean setFieldFromCql(java.lang.Object entity,
com.netflix.astyanax.model.ColumnList<java.nio.ByteBuffer> columns)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object fromColumn(com.netflix.astyanax.model.Column<java.nio.ByteBuffer> c)
cl - public java.lang.Object fromCqlColumns(com.netflix.astyanax.model.ColumnList<java.nio.ByteBuffer> c)
public void setEntityFieldsFromColumnName(java.lang.Object entity,
java.nio.ByteBuffer columnName)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException
entity - columnName - java.lang.IllegalArgumentExceptionjava.lang.IllegalAccessExceptionpublic java.lang.String getComparatorType()
public static int getShortLength(java.nio.ByteBuffer bb)
public static java.nio.ByteBuffer getWithShortLength(java.nio.ByteBuffer bb)
public static java.nio.ByteBuffer getBytes(java.nio.ByteBuffer bb,
int length)
public java.lang.String getValueType()
public java.nio.ByteBuffer[] getQueryEndpoints(java.util.Collection<com.netflix.astyanax.query.ColumnPredicate> predicates)