@Test public void testLargerRange() throws Exception { Predicate<StorageKey> predicate = emptyConstraints .from("timestamp", oct_25_2012) .to("timestamp", oct_24_2013) .toKeyPredicate(); Iterable<StorageKey> partitions = new FileSystemPartitionIterator(fileSystem, testDirectory, strategy, schema, predicate); assertIterableEquals(keys.subList(5, 17), partitions); }
@Test public void testFrom() throws Exception { Iterable<StorageKey> partitions = new FileSystemPartitionIterator( fileSystem, testDirectory, strategy, schema, emptyConstraints.from("timestamp", oct_24_2013).toKeyPredicate()); assertIterableEquals(keys.subList(16, 24), partitions); }