This project has retired. For details please refer to its Attic page.
HectorUtils (Apache Gora 0.2.1 API)

org.apache.gora.cassandra.store
Class HectorUtils<K,T extends Persistent>

java.lang.Object
  extended by org.apache.gora.cassandra.store.HectorUtils<K,T>

public class HectorUtils<K,T extends Persistent>
extends Object


Field Summary
static org.slf4j.Logger LOG
           
 
Constructor Summary
HectorUtils()
           
 
Method Summary
static
<K> me.prettyprint.hector.api.beans.HColumn<ByteBuffer,ByteBuffer>
createColumn(ByteBuffer name, ByteBuffer value)
           
static
<K> me.prettyprint.hector.api.beans.HColumn<Integer,ByteBuffer>
createColumn(Integer name, ByteBuffer value)
           
static
<K> me.prettyprint.hector.api.beans.HColumn<String,ByteBuffer>
createColumn(String name, ByteBuffer value)
           
static
<K> me.prettyprint.hector.api.beans.HSuperColumn<String,ByteBuffer,ByteBuffer>
createSuperColumn(String superColumnName, ByteBuffer columnName, ByteBuffer columnValue)
           
static
<K> me.prettyprint.hector.api.beans.HSuperColumn<String,Integer,ByteBuffer>
createSuperColumn(String superColumnName, Integer columnName, ByteBuffer columnValue)
           
static
<K> me.prettyprint.hector.api.beans.HSuperColumn<String,String,ByteBuffer>
createSuperColumn(String superColumnName, String columnName, ByteBuffer columnValue)
           
static
<K> void
deleteSubColumn(me.prettyprint.hector.api.mutation.Mutator<K> mutator, K key, String columnFamily, String superColumnName, ByteBuffer columnName)
           
static
<K> void
insertColumn(me.prettyprint.hector.api.mutation.Mutator<K> mutator, K key, String columnFamily, ByteBuffer columnName, ByteBuffer columnValue)
           
static
<K> void
insertColumn(me.prettyprint.hector.api.mutation.Mutator<K> mutator, K key, String columnFamily, String columnName, ByteBuffer columnValue)
           
static
<K> void
insertSubColumn(me.prettyprint.hector.api.mutation.Mutator<K> mutator, K key, String columnFamily, String superColumnName, ByteBuffer columnName, ByteBuffer columnValue)
           
static
<K> void
insertSubColumn(me.prettyprint.hector.api.mutation.Mutator<K> mutator, K key, String columnFamily, String superColumnName, Integer columnName, ByteBuffer columnValue)
           
static
<K> void
insertSubColumn(me.prettyprint.hector.api.mutation.Mutator<K> mutator, K key, String columnFamily, String superColumnName, String columnName, ByteBuffer columnValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.slf4j.Logger LOG
Constructor Detail

HectorUtils

public HectorUtils()
Method Detail

insertColumn

public static <K> void insertColumn(me.prettyprint.hector.api.mutation.Mutator<K> mutator,
                                    K key,
                                    String columnFamily,
                                    ByteBuffer columnName,
                                    ByteBuffer columnValue)

insertColumn

public static <K> void insertColumn(me.prettyprint.hector.api.mutation.Mutator<K> mutator,
                                    K key,
                                    String columnFamily,
                                    String columnName,
                                    ByteBuffer columnValue)

createColumn

public static <K> me.prettyprint.hector.api.beans.HColumn<ByteBuffer,ByteBuffer> createColumn(ByteBuffer name,
                                                                                              ByteBuffer value)

createColumn

public static <K> me.prettyprint.hector.api.beans.HColumn<String,ByteBuffer> createColumn(String name,
                                                                                          ByteBuffer value)

createColumn

public static <K> me.prettyprint.hector.api.beans.HColumn<Integer,ByteBuffer> createColumn(Integer name,
                                                                                           ByteBuffer value)

insertSubColumn

public static <K> void insertSubColumn(me.prettyprint.hector.api.mutation.Mutator<K> mutator,
                                       K key,
                                       String columnFamily,
                                       String superColumnName,
                                       ByteBuffer columnName,
                                       ByteBuffer columnValue)

insertSubColumn

public static <K> void insertSubColumn(me.prettyprint.hector.api.mutation.Mutator<K> mutator,
                                       K key,
                                       String columnFamily,
                                       String superColumnName,
                                       String columnName,
                                       ByteBuffer columnValue)

insertSubColumn

public static <K> void insertSubColumn(me.prettyprint.hector.api.mutation.Mutator<K> mutator,
                                       K key,
                                       String columnFamily,
                                       String superColumnName,
                                       Integer columnName,
                                       ByteBuffer columnValue)

deleteSubColumn

public static <K> void deleteSubColumn(me.prettyprint.hector.api.mutation.Mutator<K> mutator,
                                       K key,
                                       String columnFamily,
                                       String superColumnName,
                                       ByteBuffer columnName)

createSuperColumn

public static <K> me.prettyprint.hector.api.beans.HSuperColumn<String,ByteBuffer,ByteBuffer> createSuperColumn(String superColumnName,
                                                                                                               ByteBuffer columnName,
                                                                                                               ByteBuffer columnValue)

createSuperColumn

public static <K> me.prettyprint.hector.api.beans.HSuperColumn<String,String,ByteBuffer> createSuperColumn(String superColumnName,
                                                                                                           String columnName,
                                                                                                           ByteBuffer columnValue)

createSuperColumn

public static <K> me.prettyprint.hector.api.beans.HSuperColumn<String,Integer,ByteBuffer> createSuperColumn(String superColumnName,
                                                                                                            Integer columnName,
                                                                                                            ByteBuffer columnValue)


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.