Package com.twitter.cassie

Examples of com.twitter.cassie.ColumnFamily


    mock = new MockCassandraClient();
  }

  @Test
  public void test() {
    ColumnFamily cf = new ColumnFamily("ks", "cf", new MockCassandraClient.SimpleProvider(mock.client),
        Utf8Codec.get(), Utf8Codec.get(), Utf8Codec.get(), NullStatsReceiver$.MODULE$,
        ReadConsistency.Quorum(), WriteConsistency.Quorum());
    cf.getColumn("key", "name");
    ColumnParent cp = new ColumnParent("cf");
    ArgumentCaptor<SlicePredicate> pred = ArgumentCaptor.forClass(SlicePredicate.class);
    verify(mock.client).get_slice(eq(codec.encode("key")), eq(cp),
        pred.capture(), eq(ConsistencyLevel.QUORUM));
    for (ByteBuffer name : pred.getValue().getColumn_names()) {
View Full Code Here

TOP

Related Classes of com.twitter.cassie.ColumnFamily

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.