|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.crunch.types.writable.WritableTypeFamily
public class WritableTypeFamily
The Writable-based implementation of the
PTypeFamily interface.
| Method Summary | ||
|---|---|---|
|
as(PType<T> ptype)
Returns the equivalent of the given ptype for this family, if it exists. |
|
PType<Boolean> |
booleans()
|
|
PType<ByteBuffer> |
bytes()
|
|
|
collections(PType<T> ptype)
|
|
|
derived(Class<T> clazz,
MapFn<S,T> inputFn,
MapFn<T,S> outputFn,
PType<S> base)
|
|
|
derivedImmutable(Class<T> clazz,
MapFn<S,T> inputFn,
MapFn<T,S> outputFn,
PType<S> base)
A derived type whose values are immutable. |
|
PType<Double> |
doubles()
|
|
PType<Float> |
floats()
|
|
static WritableTypeFamily |
getInstance()
|
|
PType<Integer> |
ints()
|
|
PType<Long> |
longs()
|
|
|
maps(PType<T> ptype)
|
|
PType<Void> |
nulls()
|
|
|
pairs(PType<V1> p1,
PType<V2> p2)
|
|
|
quads(PType<V1> p1,
PType<V2> p2,
PType<V3> p3,
PType<V4> p4)
|
|
|
records(Class<T> clazz)
|
|
PType<String> |
strings()
|
|
|
tableOf(PType<K> key,
PType<V> value)
|
|
|
triples(PType<V1> p1,
PType<V2> p2,
PType<V3> p3)
|
|
|
tuples(Class<T> clazz,
PType<?>... ptypes)
|
|
PType<TupleN> |
tuples(PType<?>... ptypes)
|
|
PType<Union> |
unionOf(PType<?>... ptypes)
|
|
|
writables(Class<W> clazz)
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static WritableTypeFamily getInstance()
public PType<Void> nulls()
nulls in interface PTypeFamilypublic PType<String> strings()
strings in interface PTypeFamilypublic PType<Long> longs()
longs in interface PTypeFamilypublic PType<Integer> ints()
ints in interface PTypeFamilypublic PType<Float> floats()
floats in interface PTypeFamilypublic PType<Double> doubles()
doubles in interface PTypeFamilypublic PType<Boolean> booleans()
booleans in interface PTypeFamilypublic PType<ByteBuffer> bytes()
bytes in interface PTypeFamilypublic <T> PType<T> records(Class<T> clazz)
records in interface PTypeFamilypublic <W extends org.apache.hadoop.io.Writable> PType<W> writables(Class<W> clazz)
public <K,V> PTableType<K,V> tableOf(PType<K> key,
PType<V> value)
tableOf in interface PTypeFamily
public <V1,V2> PType<Pair<V1,V2>> pairs(PType<V1> p1,
PType<V2> p2)
pairs in interface PTypeFamily
public <V1,V2,V3> PType<Tuple3<V1,V2,V3>> triples(PType<V1> p1,
PType<V2> p2,
PType<V3> p3)
triples in interface PTypeFamily
public <V1,V2,V3,V4> PType<Tuple4<V1,V2,V3,V4>> quads(PType<V1> p1,
PType<V2> p2,
PType<V3> p3,
PType<V4> p4)
quads in interface PTypeFamilypublic PType<TupleN> tuples(PType<?>... ptypes)
tuples in interface PTypeFamilypublic <T> PType<Collection<T>> collections(PType<T> ptype)
collections in interface PTypeFamilypublic <T> PType<Map<String,T>> maps(PType<T> ptype)
maps in interface PTypeFamilypublic <T> PType<T> as(PType<T> ptype)
PTypeFamily
as in interface PTypeFamily
public <T extends Tuple> PType<T> tuples(Class<T> clazz,
PType<?>... ptypes)
tuples in interface PTypeFamily
public <S,T> PType<T> derived(Class<T> clazz,
MapFn<S,T> inputFn,
MapFn<T,S> outputFn,
PType<S> base)
derived in interface PTypeFamily
public <S,T> PType<T> derivedImmutable(Class<T> clazz,
MapFn<S,T> inputFn,
MapFn<T,S> outputFn,
PType<S> base)
PTypeFamily
derivedImmutable in interface PTypeFamilypublic PType<Union> unionOf(PType<?>... ptypes)
unionOf in interface PTypeFamily
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||