org.kitesdk.data.partition
Class YearFieldPartitioner

java.lang.Object
  extended by org.kitesdk.data.FieldPartitioner<Long,Integer>
      extended by org.kitesdk.data.partition.CalendarFieldPartitioner
          extended by org.kitesdk.data.partition.YearFieldPartitioner
All Implemented Interfaces:
com.google.common.base.Function<Long,Integer>, Comparator<Integer>

@Beta
public class YearFieldPartitioner
extends CalendarFieldPartitioner


Field Summary
 
Fields inherited from class org.kitesdk.data.partition.CalendarFieldPartitioner
calendarField, UTC
 
Constructor Summary
YearFieldPartitioner(String sourceName, String name)
           
 
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.
 
Methods inherited from class org.kitesdk.data.partition.CalendarFieldPartitioner
apply, compare, equals, getCalendarField, hashCode, toString, valueFromString
 
Methods inherited from class org.kitesdk.data.FieldPartitioner
getCardinality, getName, getSourceName, getSourceType, getType, valueToString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

YearFieldPartitioner

public YearFieldPartitioner(String sourceName,
                            String name)
Method Detail

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.