public interface PTable<K,V> extends PCollection<Pair<K,V>>
PCollection that represents an immutable,
 distributed multi-map of keys and values.| Modifier and Type | Method and Description | 
|---|---|
| PObject<Map<K,V>> | asMap() | 
| PTable<K,V> | bottom(int count)Returns a PTable made up of the pairs in this PTable with the smallest
 value field. | 
| PTable<K,V> | cache()Marks this data as cached using the default  CachingOptions. | 
| PTable<K,V> | cache(CachingOptions options)Marks this data as cached using the given  CachingOptions. | 
| <U> PTable<K,Pair<Collection<V>,Collection<U>>> | cogroup(PTable<K,U> other)Co-group operation with the given table on common keys. | 
| PTable<K,Collection<V>> | collectValues()Aggregate all of the values with the same key into a single key-value pair
 in the returned PTable. | 
| PTable<K,V> | filter(FilterFn<Pair<K,V>> filterFn)Apply the given filter function to this instance and return the resulting
  PTable. | 
| PTable<K,V> | filter(String name,
      FilterFn<Pair<K,V>> filterFn)Apply the given filter function to this instance and return the resulting
  PTable. | 
| PType<K> | getKeyType()Returns the  PTypeof the key. | 
| PTableType<K,V> | getPTableType()Returns the  PTableTypeof thisPTable. | 
| PType<V> | getValueType()Returns the  PTypeof the value. | 
| PGroupedTable<K,V> | groupByKey()Performs a grouping operation on the keys of this table. | 
| PGroupedTable<K,V> | groupByKey(GroupingOptions options)Performs a grouping operation on the keys of this table, using the
 additional  GroupingOptionsto control how the grouping is executed. | 
| PGroupedTable<K,V> | groupByKey(int numPartitions)Performs a grouping operation on the keys of this table, using the given
 number of partitions. | 
| <U> PTable<K,Pair<V,U>> | join(PTable<K,U> other)Perform an inner join on this table and the one passed in as an argument on
 their common keys. | 
| PCollection<K> | keys()Returns a  PCollectionmade up of the keys in this PTable. | 
| <K2> PTable<K2,V> | mapKeys(MapFn<K,K2> mapFn,
       PType<K2> ptype)Returns a  PTablethat has the same values as this instance, but
 uses the given function to map the keys. | 
| <K2> PTable<K2,V> | mapKeys(String name,
       MapFn<K,K2> mapFn,
       PType<K2> ptype)Returns a  PTablethat has the same values as this instance, but
 uses the given function to map the keys. | 
| <U> PTable<K,U> | mapValues(MapFn<V,U> mapFn,
         PType<U> ptype)Returns a  PTablethat has the same keys as this instance, but
 uses the given function to map the values. | 
| <U> PTable<K,U> | mapValues(String name,
         MapFn<V,U> mapFn,
         PType<U> ptype)Returns a  PTablethat has the same keys as this instance, but
 uses the given function to map the values. | 
| Map<K,V> | materializeToMap()Returns a Map | 
| PTable<K,V> | top(int count)Returns a PTable made up of the pairs in this PTable with the largest value
 field. | 
| PTable<K,V> | union(PTable<K,V>... others)Returns a  PTableinstance that acts as the union of thisPTableand the inputPTables. | 
| PTable<K,V> | union(PTable<K,V> other)Returns a  PTableinstance that acts as the union of thisPTableand the otherPTables. | 
| PCollection<V> | values()Returns a  PCollectionmade up of the values in this PTable. | 
| PTable<K,V> | write(Target target)Writes this  PTableto the givenTarget. | 
| PTable<K,V> | write(Target target,
     Target.WriteMode writeMode)Writes this  PTableto the givenTarget, using the
 givenTarget.WriteModeto handle existing targets. | 
aggregate, asCollection, asReadable, by, by, count, first, getName, getPipeline, getPType, getSize, getTypeFamily, length, materialize, max, min, parallelDo, parallelDo, parallelDo, parallelDo, parallelDo, parallelDo, sequentialDo, union, unionPTable<K,V> union(PTable<K,V> other)
PTable instance that acts as the union of this
 PTable and the other PTables.PTable<K,V> union(PTable<K,V>... others)
PTable instance that acts as the union of this
 PTable and the input PTables.PGroupedTable<K,V> groupByKey()
PGroupedTable instance that represents the groupingPGroupedTable<K,V> groupByKey(int numPartitions)
numPartitions - The number of partitions for the data.PGroupedTable instance that represents this groupingPGroupedTable<K,V> groupByKey(GroupingOptions options)
GroupingOptions to control how the grouping is executed.options - The grouping options to usePGroupedTable instance that represents the groupingPTable<K,V> write(Target target)
PTable to the given Target.write in interface PCollection<Pair<K,V>>target - The target to write toPTable<K,V> write(Target target, Target.WriteMode writeMode)
PTable to the given Target, using the
 given Target.WriteMode to handle existing targets.write in interface PCollection<Pair<K,V>>target - The targetwriteMode - The rule for handling existing outputs at the target locationPTable<K,V> cache()
PCollectionCachingOptions. Cached PCollections will only
 be processed once, and then their contents will be saved so that downstream code can process them many times.cache in interface PCollection<Pair<K,V>>PCollection instancePTable<K,V> cache(CachingOptions options)
PCollectionCachingOptions. Cached PCollections will only
 be processed once and then their contents will be saved so that downstream code can process them many times.cache in interface PCollection<Pair<K,V>>options - the options that control the cache settings for the dataPCollection instancePTableType<K,V> getPTableType()
PTableType of this PTable.<U> PTable<K,U> mapValues(MapFn<V,U> mapFn, PType<U> ptype)
PTable that has the same keys as this instance, but
 uses the given function to map the values.<U> PTable<K,U> mapValues(String name, MapFn<V,U> mapFn, PType<U> ptype)
PTable that has the same keys as this instance, but
 uses the given function to map the values.<K2> PTable<K2,V> mapKeys(MapFn<K,K2> mapFn, PType<K2> ptype)
PTable that has the same values as this instance, but
 uses the given function to map the keys.<K2> PTable<K2,V> mapKeys(String name, MapFn<K,K2> mapFn, PType<K2> ptype)
PTable that has the same values as this instance, but
 uses the given function to map the keys.PTable<K,Collection<V>> collectValues()
PTable<K,V> filter(FilterFn<Pair<K,V>> filterFn)
PTable.filter in interface PCollection<Pair<K,V>>PTable<K,V> filter(String name, FilterFn<Pair<K,V>> filterFn)
PTable.filter in interface PCollection<Pair<K,V>>name - An identifier for this processing stepfilterFn - The FilterFn to applyPTable<K,V> top(int count)
count - The number of pairs to returnPTable<K,V> bottom(int count)
count - The number of pairs to return<U> PTable<K,Pair<V,U>> join(PTable<K,U> other)
<U> PTable<K,Pair<Collection<V>,Collection<U>>> cogroup(PTable<K,U> other)
PCollection<K> keys()
PCollection made up of the keys in this PTable.PCollection<V> values()
PCollection made up of the values in this PTable.Map<K,V> materializeToMap()
Note: The contents of the returned map may not be exactly the same as this PTable, as a PTable is a multi-map (i.e. can contain multiple values for a single key).
PObject<Map<K,V>> asMap()
PObject encapsulating a Map made up of the keys and values in this
 PTable.
 Note:The contents of the returned map may not be exactly the same as this PTable, as a PTable is a multi-map (i.e. can contain multiple values for a single key).
PObject encapsulating a Map made up of the keys and values in
 this PTable.Copyright © 2016 The Apache Software Foundation. All rights reserved.