org.kitesdk.data.partition
Class MonthFieldPartitioner
java.lang.Object
org.kitesdk.data.FieldPartitioner<Long,Integer>
org.kitesdk.data.partition.CalendarFieldPartitioner
org.kitesdk.data.partition.MonthFieldPartitioner
- All Implemented Interfaces:
- com.google.common.base.Function<Long,Integer>, Comparator<Integer>
@Beta
public class MonthFieldPartitioner
- extends CalendarFieldPartitioner
MonthFieldPartitioner
public MonthFieldPartitioner(String sourceName,
String name)
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.