Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package me.prettyprint.cassandra.model;
 
 import java.util.List;
 import java.util.Map;
 
Represents a return of the get_slice query for supercolumns

Parameters:
<SN> Super column name type
<N> Column name type
<V> Column value type
public final class SuperSliceImpl<SN,N,V> implements SuperSlice<SN, N, V> {
  private final Map<SN,HSuperColumn<SN,N,V>> columnsMap;
  private final List<HSuperColumn<SN,N,V>> columnsList;
  public SuperSliceImpl(List<SuperColumntSuperColumnsSerializer<SN> sNameSerializer,
      Serializer<N> nameSerializerSerializer<V> valueSerializer) {
    Assert.noneNull(tSuperColumnssNameSerializernameSerializervalueSerializer);
     = new HashMap<SN,HSuperColumn<SN,N,V>>(tSuperColumns.size());
     = new ArrayList<HSuperColumn<SN,N,V>>(tSuperColumns.size());
    for (SuperColumn sctSuperColumns) {
      HSuperColumn<SN,N,V> column = new HSuperColumnImpl<SN,N,V>(scsNameSerializernameSerializer,
          valueSerializer);
      .put(column.getName(), column);
      .add(column);
    }
  }

  

Returns:
an unmodifiable list of supercolumns
  public List<HSuperColumn<SN,N,V>> getSuperColumns() {
    return Collections.unmodifiableList();
  }
  public HSuperColumn<SN, N, V> getColumnByName(SN columnName) {
    return .get(columnName);
  }
  public String toString() {
    return "SuperSlice(" + .toString() + ")";
  }
New to GrepCode? Check out our FAQ X