|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cloudera.cdk.data.FieldPartitioner<Long,Integer>
com.cloudera.cdk.data.partition.DayOfMonthFieldPartitioner
@Beta public class DayOfMonthFieldPartitioner
| Field Summary | |
|---|---|
protected Calendar |
cal
|
protected int |
calendarField
|
| Constructor Summary | |
|---|---|
DayOfMonthFieldPartitioner(String sourceName,
String name)
|
|
| Method Summary | |
|---|---|
Integer |
apply(Long timestamp)
Apply the partition function to the given value. |
int |
compare(Integer o1,
Integer o2)
|
boolean |
equals(Object o)
|
int |
hashCode()
|
String |
toString()
|
Integer |
valueFromString(String stringValue)
Deprecated. |
String |
valueToString(Integer value)
Deprecated. |
| Methods inherited from class com.cloudera.cdk.data.FieldPartitioner |
|---|
getCardinality, getName, getSourceName, getSourceType, getType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Calendar cal
protected int calendarField
| Constructor Detail |
|---|
public DayOfMonthFieldPartitioner(String sourceName,
String name)
| Method Detail |
|---|
@Deprecated public String valueToString(Integer value)
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.
valueToString in class FieldPartitioner<Long,Integer>
public Integer apply(@Nonnull
Long timestamp)
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.
apply in interface com.google.common.base.Function<Long,Integer>apply in class FieldPartitioner<Long,Integer>@Deprecated public Integer valueFromString(String stringValue)
FieldPartitionerRetrieve the value for the field from the string representation.
valueFromString in class FieldPartitioner<Long,Integer>public boolean equals(Object o)
equals in interface com.google.common.base.Function<Long,Integer>equals in interface Comparator<Integer>equals in class Object
public int compare(Integer o1,
Integer o2)
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||