org.kitesdk.data.partition
Class YearFieldPartitioner
java.lang.Object
org.kitesdk.data.FieldPartitioner<Long,Integer>
org.kitesdk.data.partition.CalendarFieldPartitioner
org.kitesdk.data.partition.YearFieldPartitioner
- All Implemented Interfaces:
- com.google.common.base.Function<Long,Integer>, Comparator<Integer>
@Beta
public class YearFieldPartitioner
- extends CalendarFieldPartitioner
Method Summary |
com.google.common.base.Predicate<Integer> |
project(com.google.common.base.Predicate<Long> predicate)
Projects a source-data constraint Predicate into the image of the
backing partition function. |
YearFieldPartitioner
public YearFieldPartitioner(String sourceName,
String name)
project
public com.google.common.base.Predicate<Integer> project(com.google.common.base.Predicate<Long> predicate)
- Description copied from class:
FieldPartitioner
- Projects a source-data constraint
Predicate
into the image of the
backing partition function.
If the function cannot be projected exactly, the resulting predicate must
be more permissive than the original predicate.
- Overrides:
project
in class CalendarFieldPartitioner
Copyright © 2013–2014. All rights reserved.