org.apache.mahout.fpm.pfpgrowth.fpgrowth
Class FPTreeDepthCache

java.lang.Object
  extended by org.apache.mahout.fpm.pfpgrowth.fpgrowth.FPTreeDepthCache

public class FPTreeDepthCache
extends java.lang.Object

Caches large FPTree Object for each level of the recursive FPGrowth algorithm to reduce allocation overhead.


Constructor Summary
FPTreeDepthCache()
           
 
Method Summary
static int getFirstLevelCacheSize()
           
 FPTree getFirstLevelTree(int attr)
           
 int getHits()
           
 int getMisses()
           
 FPTree getTree(int level)
           
static void setFirstLevelCacheSize(int firstLevelCacheSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FPTreeDepthCache

public FPTreeDepthCache()
Method Detail

getFirstLevelCacheSize

public static int getFirstLevelCacheSize()

setFirstLevelCacheSize

public static void setFirstLevelCacheSize(int firstLevelCacheSize)

getFirstLevelTree

public final FPTree getFirstLevelTree(int attr)

getHits

public final int getHits()

getMisses

public final int getMisses()

getTree

public final FPTree getTree(int level)


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.