|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kitesdk.data.FieldPartitioner<S,S>
org.kitesdk.data.partition.IdentityFieldPartitioner<S>
@Beta public class IdentityFieldPartitioner<S extends Comparable>
| Constructor Summary | |
|---|---|
IdentityFieldPartitioner(String name,
Class<S> type,
int buckets)
|
|
| Method Summary | |
|---|---|
S |
apply(S value)
Apply the partition function to the given value. |
int |
compare(S o1,
S o2)
|
boolean |
equals(Object o)
|
int |
hashCode()
|
com.google.common.base.Predicate<S> |
project(com.google.common.base.Predicate<S> predicate)
Projects a source-data constraint Predicate into the image of the
backing partition function. |
String |
toString()
|
S |
valueFromString(String stringValue)
Deprecated. |
| 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 |
|---|
public IdentityFieldPartitioner(String name,
Class<S> type,
int buckets)
| Method Detail |
|---|
public S apply(S value)
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<S extends Comparable,S extends Comparable>apply in class FieldPartitioner<S extends Comparable,S extends Comparable>@Deprecated public S valueFromString(String stringValue)
FieldPartitionerRetrieve the value for the field from the string representation.
valueFromString in class FieldPartitioner<S extends Comparable,S extends Comparable>public com.google.common.base.Predicate<S> project(com.google.common.base.Predicate<S> predicate)
FieldPartitionerPredicate 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.
project in class FieldPartitioner<S extends Comparable,S extends Comparable>public boolean equals(Object o)
equals in interface com.google.common.base.Function<S extends Comparable,S extends Comparable>equals in interface Comparator<S extends Comparable>equals in class Object
public int compare(S o1,
S 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 | |||||||||