Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package me.prettyprint.cassandra.service.spring;
  
  import java.util.List;
  
The main interface used to operate with the underlying database. The interface is mirroring HFactory.

Author(s):
Bozhidar Bozhanov
 
 public interface HectorTemplate {
 
   <K, N, V> Mutator<K> createMutator(Serializer<K> keySerializer);
 
   <K, N, V> Mutator<K> createMutator();
 
   <K, N, V> ColumnQuery<K, N, V> createColumnQuery();
 
   <K, N, V> ColumnQuery<K, N, V> createColumnQuery(Serializer<V> valueSErializer);
 
   <K, N> CountQuery<K, N> createCountQuery(Serializer<K> keySerializerSerializer<N> nameSerializer);
 
   <K, SN> SuperCountQuery<K, SN> createSuperCountQuery(Serializer<K> keySerializer,
       Serializer<SN> superNameSerializer);
 
   <K, SN, N> SubCountQuery<K, SN, N> createSubCountQuery(Serializer<K> keySerializer,
       Serializer<SN> superNameSerializerSerializer<N> nameSerializer);
 
   <K, SN, N, V> SuperColumnQuery<K, SN, N, V> createSuperColumnQuery(Serializer<K> keySerializer,
       Serializer<SN> sNameSerializerSerializer<N> nameSerializerSerializer<V> valueSerializer);
 
   <K, N, V> MultigetSliceQuery<K, N, V> createMultigetSliceQuery(Serializer<K> keySerializer,
       Serializer<N> nameSerializerSerializer<V> valueSerializer);
 
   <K, SN, N, V> MultigetSuperSliceQuery<K, SN, N, V> createMultigetSuperSliceQuery(
       Serializer<K> keySerializerSerializer<SN> sNameSerializerSerializer<N> nameSerializer,
       Serializer<V> valueSerializer);
 
   <K, SN, N, V> MultigetSubSliceQuery<K, SN, N, V> createMultigetSubSliceQuery(
       Serializer<K> keySerializerSerializer<SN> sNameSerializerSerializer<N> nameSerializer,
       Serializer<V> valueSerializer);
 
   <K, N, V> RangeSlicesQuery<K, N, V> createRangeSlicesQuery(Serializer<K> keySerializer,
       Serializer<N> nameSerializerSerializer<V> valueSerializer);
 
   <K, SN, N, V> RangeSuperSlicesQuery<K, SN, N, V> createRangeSuperSlicesQuery(
       Serializer<K> keySerializerSerializer<SN> sNameSerializerSerializer<N> nameSerializer,
       Serializer<V> valueSerializer);
 
   <K, SN, N, V> RangeSubSlicesQuery<K, SN, N, V> createRangeSubSlicesQuery(
       Serializer<K> keySerializerSerializer<SN> sNameSerializerSerializer<N> nameSerializer,
       Serializer<V> valueSerializer);
 
   <K, N, V> SliceQuery<K, N, V> createSliceQuery(Serializer<K> keySerializer,
       Serializer<N> nameSerializerSerializer<V> valueSerializer);
 
 
   <K, SN, N, V> SubSliceQuery<K, SN, N, V> createSubSliceQuery(Serializer<K> keySerializer,
       Serializer<SN> sNameSerializerSerializer<N> nameSerializerSerializer<V> valueSerializer);
 
   <K, SN, N, V> SuperSliceQuery<K, SN, N, V> createSuperSliceQuery(Serializer<K> keySerializer,
       Serializer<SN> sNameSerializerSerializer<N> nameSerializerSerializer<V> valueSerializer);
 
 
   <K, N, V> IndexedSlicesQuery<K, N, V> createIndexSlicesQuery(Serializer<K> keySerializer,
       Serializer<N> nameSerializerSerializer<V> valueSerializer);

  
createSuperColumn accepts a variable number of column arguments

Parameters:
name supercolumn name
createColumn a variable number of column arguments
  <SN, N, V> HSuperColumn<SN, N, V> createSuperColumn(SN nameList<HColumn<N, V>> columns,
      Serializer<SN> superNameSerializerSerializer<N> nameSerializer,
      Serializer<V> valueSerializer);
  <SN, N, V> HSuperColumn<SN, N, V> createSuperColumn(SN nameList<HColumn<N, V>> columns);
  <SN, N, V> HSuperColumn<SN, N, V> createSuperColumn(SN nameList<HColumn<N, V>> columns,
      long clockSerializer<SN> superNameSerializerSerializer<N> nameSerializer,
      Serializer<V> valueSerializer);
  <N, V> HColumn<N, V> createColumn(N name, V valuelong clockSerializer<N> nameSerializer,
      Serializer<V> valueSerializer);

  
Creates a column with the clock of now.
  <N, V> HColumn<N, V> createColumn(N name, V value);
  
  
Creates a column with the specified name/value and clock.
  <N, V> HColumn<N, V> createColumn(N name, V valuelong clock);

  
Creates a clock of now with the default clock resolution (micorosec) as defined in me.prettyprint.cassandra.service.CassandraHost
  long createClock();
New to GrepCode? Check out our FAQ X