org.kitesdk.data.partition
Class MonthFieldPartitioner

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

@Beta
public class MonthFieldPartitioner
extends CalendarFieldPartitioner


Field Summary
 
Fields inherited from class org.kitesdk.data.partition.CalendarFieldPartitioner
calendarField, UTC
 
Constructor Summary
MonthFieldPartitioner(String sourceName, String name)
           
 
Method Summary
 Integer apply(Long timestamp)
           Apply the partition function to the given value.
 String valueToString(Integer value)
          Deprecated. 
 
Methods inherited from class org.kitesdk.data.partition.CalendarFieldPartitioner
compare, equals, getCalendarField, hashCode, project, toString, valueFromString
 
Methods inherited from class org.kitesdk.data.FieldPartitioner
getCardinality, getName, getSourceName, getSourceType, getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MonthFieldPartitioner

public MonthFieldPartitioner(String sourceName,
                             String name)
Method Detail

apply

public Integer apply(@Nonnull
                     Long timestamp)
Description copied from class: FieldPartitioner

Apply the partition function to the given value.

The type of value must be compatible with the field partitioner implementation. Normally, this is validated at the time of initial configuration rather than at runtime.

Specified by:
apply in interface com.google.common.base.Function<Long,Integer>
Overrides:
apply in class CalendarFieldPartitioner

valueToString

@Deprecated
public String valueToString(Integer value)
Deprecated. 

Description copied from class: FieldPartitioner

Retrieve the value for the field formatted as a String. By default, this is the object's Object.toString() representation, but some FieldPartitioners may choose to provide a different representation.

Overrides:
valueToString in class FieldPartitioner<Long,Integer>


Copyright © 2013–2014. All rights reserved.