## Uses of Class
org.apache.mahout.common.Pair

Packages that use Pair
org.apache.mahout.classifier.naivebayes
org.apache.mahout.clustering.lda.cvb
org.apache.mahout.clustering.streaming.cluster
org.apache.mahout.common
org.apache.mahout.common.iterator
org.apache.mahout.common.iterator.sequencefile
org.apache.mahout.fpm.pfpgrowth: MapReduce (parallel) implementation of FP Growth Algorithm for frequent Itemset Mining
org.apache.mahout.fpm.pfpgrowth.convertors
org.apache.mahout.fpm.pfpgrowth.convertors.integer
org.apache.mahout.fpm.pfpgrowth.convertors.string
org.apache.mahout.fpm.pfpgrowth.fpgrowth
org.apache.mahout.fpm.pfpgrowth.fpgrowth2
org.apache.mahout.math.hadoop.stochasticsvd
org.apache.mahout.vectorizer
org.apache.mahout.vectorizer.tfidf

Uses of Pair in org.apache.mahout.classifier.naivebayes

Method parameters in org.apache.mahout.classifier.naivebayes with type arguments of type Pair
`static int` `BayesUtils.writeLabelIndex(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path indexPath, Iterable<Pair<org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable>> labels)`

Uses of Pair in org.apache.mahout.clustering.lda.cvb

Methods in org.apache.mahout.clustering.lda.cvb that return Pair
`static Pair<Matrix,Vector>` `TopicModel.loadModel(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path... modelPaths)`

Uses of Pair in org.apache.mahout.clustering.streaming.cluster

Methods in org.apache.mahout.clustering.streaming.cluster that return Pair
`Pair<List<? extends WeightedVector>,List<? extends WeightedVector>>` `BallKMeans.splitTrainTest(List<? extends WeightedVector> datapoints)`

Uses of Pair in org.apache.mahout.common

Methods in org.apache.mahout.common that return Pair

`static

`<A,B> Pair<A,B>`

`

`Pair.of(A a, B b)`

`Pair<B,A>` `Pair.swap()`

Methods in org.apache.mahout.common with parameters of type Pair
`int` `Pair.compareTo(Pair<A,B> other)` Defines an ordering on pairs that sorts by first value's natural ordering, ascending, and then by second value's natural ordering.

Uses of Pair in org.apache.mahout.common.iterator

Methods in org.apache.mahout.common.iterator that return types with arguments of type Pair
`protected Iterator<Pair<List<String>,Long>>` `StringRecordIterator.delegate()`

Uses of Pair in org.apache.mahout.common.iterator.sequencefile

Methods in org.apache.mahout.common.iterator.sequencefile that return Pair
`protected Pair<K,V>` `SequenceFileIterator.computeNext()`

Methods in org.apache.mahout.common.iterator.sequencefile that return types with arguments of type Pair
`protected Iterator<Pair<K,V>>` `SequenceFileDirIterator.delegate()`
`Iterator<Pair<K,V>>` `SequenceFileIterable.iterator()`
`Iterator<Pair<K,V>>` `SequenceFileDirIterable.iterator()`

Uses of Pair in org.apache.mahout.fpm.pfpgrowth

Methods in org.apache.mahout.fpm.pfpgrowth that return types with arguments of type Pair
`Iterator<Pair<IntArrayList,Long>>` `TransactionTree.iterator()`
`static List<Pair<String,Long>>` `PFPGrowth.readFList(org.apache.hadoop.conf.Configuration conf)` Generates the fList from the serialized string representation
`static List<Pair<String,Long>>` `PFPGrowth.readFList(Parameters params)` read the feature frequency List which is built at the end of the Parallel counting job
`static List<Pair<String,TopKStringPatterns>>` `PFPGrowth.readFrequentPattern(Parameters params)` Read the Frequent Patterns generated from Text

Methods in org.apache.mahout.fpm.pfpgrowth with parameters of type Pair
`int` `CountDescendingPairComparator.compare(Pair<A,B> a, Pair<A,B> b)`
`int` `CountDescendingPairComparator.compare(Pair<A,B> a, Pair<A,B> b)`

Method parameters in org.apache.mahout.fpm.pfpgrowth with type arguments of type Pair
`static void` `PFPGrowth.saveFList(Iterable<Pair<String,Long>> flist, Parameters params, org.apache.hadoop.conf.Configuration conf)` Serializes the fList and returns the string representation of the List

Constructor parameters in org.apache.mahout.fpm.pfpgrowth with type arguments of type Pair
`MultiTransactionTreeIterator(Iterator<Pair<IntArrayList,Long>> iterator)`
`TransactionTree(List<Pair<IntArrayList,Long>> transactionSet)`

Uses of Pair in org.apache.mahout.fpm.pfpgrowth.convertors

Methods in org.apache.mahout.fpm.pfpgrowth.convertors that return types with arguments of type Pair
`protected Iterator<Pair<int[],Long>>` `TransactionIterator.delegate()`

Constructor parameters in org.apache.mahout.fpm.pfpgrowth.convertors with type arguments of type Pair
`TopKPatternsOutputConverter(org.apache.hadoop.mapred.OutputCollector<A,List<Pair<List<A>,Long>>> collector, Map<Integer,A> reverseMapping)`
`TransactionIterator(Iterator<Pair<List<T>,Long>> transactions, Map<T,Integer> attributeIdMapping)`

Uses of Pair in org.apache.mahout.fpm.pfpgrowth.convertors.integer

Method parameters in org.apache.mahout.fpm.pfpgrowth.convertors.integer with type arguments of type Pair
`void` `IntegerStringOutputConverter.collect(Integer key, List<Pair<List<Integer>,Long>> value)`

Uses of Pair in org.apache.mahout.fpm.pfpgrowth.convertors.string

Methods in org.apache.mahout.fpm.pfpgrowth.convertors.string that return types with arguments of type Pair
`List<Pair<List<String>,Long>>` `TopKStringPatterns.getPatterns()`
`Iterator<Pair<List<String>,Long>>` `TopKStringPatterns.iterator()`

Method parameters in org.apache.mahout.fpm.pfpgrowth.convertors.string with type arguments of type Pair
`void` `StringOutputConverter.collect(String key, List<Pair<List<String>,Long>> value)`

Constructor parameters in org.apache.mahout.fpm.pfpgrowth.convertors.string with type arguments of type Pair
`TopKStringPatterns(Collection<Pair<List<String>,Long>> patterns)`

Uses of Pair in org.apache.mahout.fpm.pfpgrowth.fpgrowth

Methods in org.apache.mahout.fpm.pfpgrowth.fpgrowth that return types with arguments of type Pair
`List<Pair<A,Long>>` `FPGrowth.generateFList(Iterator<Pair<List<A>,Long>> transactions, int minSupport)` Generate the Feature Frequency list from the given transaction whose frequency > minSupport
`static List<Pair<String,TopKStringPatterns>>` `FPGrowth.readFrequentPattern(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path path)`

Method parameters in org.apache.mahout.fpm.pfpgrowth.fpgrowth with type arguments of type Pair
`List<Pair<A,Long>>` `FPGrowth.generateFList(Iterator<Pair<List<A>,Long>> transactions, int minSupport)` Generate the Feature Frequency list from the given transaction whose frequency > minSupport

`void`

`FPGrowth.generateTopKFrequentPatterns(Iterator<Pair<List<A>,Long>> transactionStream, Collection<Pair<A,Long>> frequencyList, long minSupport, int k, Collection<A> returnableFeatures, org.apache.hadoop.mapred.OutputCollector<A,List<Pair<List<A>,Long>>> output, StatusUpdater updater)`
Generate Top K Frequent Patterns for every feature in returnableFeatures given a stream of transactions and the minimum support

`void`

`FPGrowth.generateTopKFrequentPatterns(Iterator<Pair<List<A>,Long>> transactionStream, Collection<Pair<A,Long>> frequencyList, long minSupport, int k, Collection<A> returnableFeatures, org.apache.hadoop.mapred.OutputCollector<A,List<Pair<List<A>,Long>>> output, StatusUpdater updater)`
Generate Top K Frequent Patterns for every feature in returnableFeatures given a stream of transactions and the minimum support

`void`

`FPGrowth.generateTopKFrequentPatterns(Iterator<Pair<List<A>,Long>> transactionStream, Collection<Pair<A,Long>> frequencyList, long minSupport, int k, Collection<A> returnableFeatures, org.apache.hadoop.mapred.OutputCollector<A,List<Pair<List<A>,Long>>> output, StatusUpdater updater)`
Generate Top K Frequent Patterns for every feature in returnableFeatures given a stream of transactions and the minimum support

Uses of Pair in org.apache.mahout.fpm.pfpgrowth.fpgrowth2

Methods in org.apache.mahout.fpm.pfpgrowth.fpgrowth2 that return Pair
`Pair<FPTree,FPTree>` `FPTree.splitSinglePrefix()` Return a pair of trees that result from separating a common prefix (if one exists) from the lower portion of this tree.

Methods in org.apache.mahout.fpm.pfpgrowth.fpgrowth2 that return types with arguments of type Pair
`List<Pair<A,Long>>` `FPGrowthObj.generateFList(Iterator<Pair<List<A>,Long>> transactions, int minSupport)` Generate the Feature Frequency list from the given transaction whose frequency > minSupport
`static List<Pair<String,TopKStringPatterns>>` `FPGrowthObj.readFrequentPattern(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path path)`

Method parameters in org.apache.mahout.fpm.pfpgrowth.fpgrowth2 with type arguments of type Pair
`List<Pair<A,Long>>` `FPGrowthObj.generateFList(Iterator<Pair<List<A>,Long>> transactions, int minSupport)` Generate the Feature Frequency list from the given transaction whose frequency > minSupport

`static void`

`FPGrowthIds.generateTopKFrequentPatterns(Iterator<Pair<IntArrayList,Long>> transactionStream, LongArrayList attributeFrequency, long minSupport, int k, IntArrayList returnableFeatures, org.apache.hadoop.mapred.OutputCollector<Integer,List<Pair<List<Integer>,Long>>> output)`
Generate Top K Frequent Patterns for every feature in returnableFeatures given a stream of transactions and the minimum support

`static void`

`FPGrowthIds.generateTopKFrequentPatterns(Iterator<Pair<IntArrayList,Long>> transactionStream, LongArrayList attributeFrequency, long minSupport, int k, IntArrayList returnableFeatures, org.apache.hadoop.mapred.OutputCollector<Integer,List<Pair<List<Integer>,Long>>> output)`
Generate Top K Frequent Patterns for every feature in returnableFeatures given a stream of transactions and the minimum support

`void` `FPGrowthObj.generateTopKFrequentPatterns(Iterator<Pair<List<A>,Long>> transactionStream, Collection<Pair<A,Long>> frequencyList, long minSupport, int k, Collection<A> returnableFeatures, org.apache.hadoop.mapred.OutputCollector<A,List<Pair<List<A>,Long>>> output)` Generate Top K Frequent Patterns for every feature in returnableFeatures given a stream of transactions and the minimum support
`void` `FPGrowthObj.generateTopKFrequentPatterns(Iterator<Pair<List<A>,Long>> transactionStream, Collection<Pair<A,Long>> frequencyList, long minSupport, int k, Collection<A> returnableFeatures, org.apache.hadoop.mapred.OutputCollector<A,List<Pair<List<A>,Long>>> output)` Generate Top K Frequent Patterns for every feature in returnableFeatures given a stream of transactions and the minimum support
`void` `FPGrowthObj.generateTopKFrequentPatterns(Iterator<Pair<List<A>,Long>> transactionStream, Collection<Pair<A,Long>> frequencyList, long minSupport, int k, Collection<A> returnableFeatures, org.apache.hadoop.mapred.OutputCollector<A,List<Pair<List<A>,Long>>> output)` Generate Top K Frequent Patterns for every feature in returnableFeatures given a stream of transactions and the minimum support

Uses of Pair in org.apache.mahout.math.hadoop.stochasticsvd

Methods in org.apache.mahout.math.hadoop.stochasticsvd that return types with arguments of type Pair
`static Iterator<Pair<org.apache.hadoop.io.Writable,Vector>>` `SSVDHelper.drmIterator(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path glob, org.apache.hadoop.conf.Configuration conf, Deque<Closeable> closeables)`

Uses of Pair in org.apache.mahout.vectorizer

Methods in org.apache.mahout.vectorizer with parameters of type Pair
`static void` `HighDFWordsPruner.pruneVectors(org.apache.hadoop.fs.Path tfDir, org.apache.hadoop.fs.Path prunedTFDir, org.apache.hadoop.fs.Path prunedPartialTFDir, long maxDF, long minDF, org.apache.hadoop.conf.Configuration baseConf, Pair<Long[],List<org.apache.hadoop.fs.Path>> docFrequenciesFeatures, float normPower, boolean logNormalize, int numReducers)`

Uses of Pair in org.apache.mahout.vectorizer.tfidf

Methods in org.apache.mahout.vectorizer.tfidf that return Pair
`static Pair<Long[],List<org.apache.hadoop.fs.Path>>` `TFIDFConverter.calculateDF(org.apache.hadoop.fs.Path input, org.apache.hadoop.fs.Path output, org.apache.hadoop.conf.Configuration baseConf, int chunkSizeInMegabytes)` Calculates the document frequencies of all terms from the input set of vectors in `SequenceFile` format.

Methods in org.apache.mahout.vectorizer.tfidf with parameters of type Pair

`static void`

`TFIDFConverter.processTfIdf(org.apache.hadoop.fs.Path input, org.apache.hadoop.fs.Path output, org.apache.hadoop.conf.Configuration baseConf, Pair<Long[],List<org.apache.hadoop.fs.Path>> datasetFeatures, int minDf, long maxDF, float normPower, boolean logNormalize, boolean sequentialAccessOutput, boolean namedVector, int numReducers)`
Create Term Frequency-Inverse Document Frequency (Tf-Idf) Vectors from the input set of vectors in `SequenceFile` format.

Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.