Created
June 13, 2012 01:44
-
-
Save jsanda/2921288 to your computer and use it in GitHub Desktop.
Hector's column slice iterator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SliceQuery<Integer, Double Long> query = HFactory.createSliceQuery(keyspace, IntegerSerializer.get(), | |
LongSerializer.get(), DoubleSerializer.get()); | |
query.setColumnFamily(rawMetricsDataCF); | |
query.setKey(scheduleId); | |
ColumnSliceIterator<Integer, Double, Long> iterator = new ColumnSliceIterator<Integer, Double, Long>( | |
query, startTime.getMillis(), endTime.getMillis(), false); | |
HColumn<Long, Double> column = iterator.next(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment