Skip to content

Commit

Permalink
Merge pull request #623 from mebigfatguy/master
Browse files Browse the repository at this point in the history
don't need an iterator to get the 0th item in a list.
  • Loading branch information
zznate committed Jun 25, 2013
2 parents df80348 + de163b3 commit 1453892
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public Column execute(Cassandra.Client cassandra) throws HectorException {
queryLogger.debug("---------\nColumnFamily: {} slicePredicate: {}", columnFamilyName, activeSlicePredicate.toString());
}

K key = _keys.iterator().next();
K key = _keys.get(0);
List<ColumnOrSuperColumn> cosclist = cassandra.get_slice(keySerializer.toByteBuffer(key), columnParent,
activeSlicePredicate.toThrift(),
ThriftConverter.consistencyLevel(consistencyLevelPolicy.get(operationType)));
Expand Down

0 comments on commit 1453892

Please sign in to comment.