com.cloudera.crunch.type.avro
Class AvroTableType<K,V>
java.lang.Object
com.cloudera.crunch.type.avro.AvroType<Pair<K,V>>
com.cloudera.crunch.type.avro.AvroTableType<K,V>
- All Implemented Interfaces:
- PTableType<K,V>, PType<Pair<K,V>>
public class AvroTableType<K,V>
- extends AvroType<Pair<K,V>>
- implements PTableType<K,V>
The implementation of the PTableType interface for Avro-based serialization.
Methods inherited from class com.cloudera.crunch.type.avro.AvroType |
equals, getConverter, getDefaultFileSource, getFamily, getInputMapFn, getOutputMapFn, getSchema, getSubTypes, getTypeClass, hashCode, isSpecific |
AvroTableType
public AvroTableType(AvroType<K> keyType,
AvroType<V> valueType,
Class<Pair<K,V>> pairClass)
getKeyType
public PType<K> getKeyType()
- Description copied from interface:
PTableType
- Returns the key type for the table.
- Specified by:
getKeyType
in interface PTableType<K,V>
getValueType
public PType<V> getValueType()
- Description copied from interface:
PTableType
- Returns the value type for the table.
- Specified by:
getValueType
in interface PTableType<K,V>
getGroupedTableType
public PGroupedTableType<K,V> getGroupedTableType()
- Description copied from interface:
PTableType
- Returns the grouped table version of this type.
- Specified by:
getGroupedTableType
in interface PTableType<K,V>
Copyright © 2012. All Rights Reserved.