org.apache.crunch.types
Interface PTableType<K,V>

All Superinterfaces:
PType<Pair<K,V>>, Serializable
All Known Implementing Classes:
AvroTableType

public interface PTableType<K,V>
extends PType<Pair<K,V>>

An extension of PType specifically for PTable objects. It allows separate access to the PTypes of the key and value for the PTable.


Method Summary
 PGroupedTableType<K,V> getGroupedTableType()
          Returns the grouped table version of this type.
 PType<K> getKeyType()
          Returns the key type for the table.
 PType<V> getValueType()
          Returns the value type for the table.
 
Methods inherited from interface org.apache.crunch.types.PType
getConverter, getDefaultFileSource, getDetachedValue, getFamily, getInputMapFn, getOutputMapFn, getSubTypes, getTypeClass
 

Method Detail

getKeyType

PType<K> getKeyType()
Returns the key type for the table.


getValueType

PType<V> getValueType()
Returns the value type for the table.


getGroupedTableType

PGroupedTableType<K,V> getGroupedTableType()
Returns the grouped table version of this type.



Copyright © 2012 The Apache Software Foundation. All Rights Reserved.