public class CassandraUtils extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
EMPTY_VALUE |
static String |
SEPARATOR |
Modifier | Constructor and Description |
---|---|
private |
CassandraUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addInsertion(me.prettyprint.hector.api.mutation.Mutator<String> mutator,
String key,
String columnFamily,
String columnName,
String value) |
static void |
addUpdateStringValue(me.prettyprint.cassandra.service.template.ColumnFamilyUpdater<String,String> updater,
String columnName,
String value)
null check on the value to prevent
IllegalArgumentException |
static <A,B> me.prettyprint.hector.api.beans.HColumn<A,B> |
column(A name,
B value) |
static String |
generateKey(String... bases) |
static Long |
getAsLongValue(me.prettyprint.hector.api.beans.ColumnSlice<String,String> columnSlice,
String columnName) |
static <T> String |
getAsStringValue(me.prettyprint.hector.api.beans.ColumnSlice<String,T> columnSlice,
String columnName) |
static Long |
getLongValue(me.prettyprint.hector.api.beans.ColumnSlice<String,?> columnSlice,
String columnName) |
static String |
getStringValue(me.prettyprint.hector.api.beans.ColumnSlice<String,String> columnSlice,
ColumnNames columnName) |
static String |
getStringValue(me.prettyprint.hector.api.beans.ColumnSlice<String,String> columnSlice,
String columnName) |
private static final String EMPTY_VALUE
public static final String SEPARATOR
private CassandraUtils()
public static String generateKey(String... bases)
public static <A,B> me.prettyprint.hector.api.beans.HColumn<A,B> column(A name, B value)
public static String getStringValue(me.prettyprint.hector.api.beans.ColumnSlice<String,String> columnSlice, ColumnNames columnName)
public static String getStringValue(me.prettyprint.hector.api.beans.ColumnSlice<String,String> columnSlice, String columnName)
public static Long getLongValue(me.prettyprint.hector.api.beans.ColumnSlice<String,?> columnSlice, String columnName)
public static <T> String getAsStringValue(me.prettyprint.hector.api.beans.ColumnSlice<String,T> columnSlice, String columnName)
public static Long getAsLongValue(me.prettyprint.hector.api.beans.ColumnSlice<String,String> columnSlice, String columnName)
public static void addInsertion(me.prettyprint.hector.api.mutation.Mutator<String> mutator, String key, String columnFamily, String columnName, String value)
public static void addUpdateStringValue(me.prettyprint.cassandra.service.template.ColumnFamilyUpdater<String,String> updater, String columnName, String value)
IllegalArgumentException
updater
- columnName
- value
- Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.