Skip to content

Commit

Permalink
Merge pull request Netflix#431 from opuneet/issue430
Browse files Browse the repository at this point in the history
Issue430
  • Loading branch information
opuneet committed Nov 7, 2013
2 parents 1115227 + 1994a8d commit b389b0b
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@

import org.apache.cassandra.thrift.KeyRange;
import org.apache.cassandra.thrift.KeySlice;
import org.apache.commons.lang.NotImplementedException;

import com.google.common.collect.Iterables;
import com.netflix.astyanax.model.ColumnFamily;
import com.netflix.astyanax.model.Row;
import com.netflix.astyanax.model.Rows;
import com.netflix.astyanax.partitioner.Partitioner;
import com.netflix.astyanax.thrift.model.*;
import com.netflix.astyanax.thrift.model.ThriftColumnOrSuperColumnListImpl;
import com.netflix.astyanax.thrift.model.ThriftRowImpl;

public class ThriftAllRowsImpl<K, C> implements Rows<K, C> {
private ColumnFamily<K, C> columnFamily;
Expand Down Expand Up @@ -147,26 +149,26 @@ public void remove() {

@Override
public Row<K, C> getRow(K key) {
throw new IllegalStateException();
throw new NotImplementedException("Only iterator based access is implemented");
}

@Override
public int size() {
throw new IllegalStateException();
throw new NotImplementedException("Only iterator based access is implemented");
}

@Override
public boolean isEmpty() {
throw new IllegalStateException();
throw new NotImplementedException("Only iterator based access is implemented");
}

@Override
public Row<K, C> getRowByIndex(int i) {
throw new IllegalStateException();
throw new NotImplementedException("Only iterator based access is implemented");
}

@Override
public Collection<K> getKeys() {
throw new IllegalStateException();
throw new NotImplementedException("Only iterator based access is implemented");
}
}

0 comments on commit b389b0b

Please sign in to comment.