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