Skip to content

Instantly share code, notes, and snippets.

@jsanda
Created June 13, 2012 01:46
Show Gist options
  • Save jsanda/2921293 to your computer and use it in GitHub Desktop.
Save jsanda/2921293 to your computer and use it in GitHub Desktop.
Hector's column slice iterator hack
ColumnSliceIterator<Integer, Double, Long> iterator = new ColumnSliceIterator<Integer, Double, Long>(
query, startTime.getMillis(), endTime.getMillis(), false);
iterator.hasNext(); // call hasNext first to initialize internal iterator
HColumn<Long, Double> column = iterator.next();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment