com.sun.labs.minion.classification
Class ClusterPartitionFactory

java.lang.Object
  extended by com.sun.labs.minion.indexer.partition.DiskPartitionFactory
      extended by com.sun.labs.minion.classification.ClusterPartitionFactory
All Implemented Interfaces:
com.sun.labs.util.props.Component, com.sun.labs.util.props.Configurable

public class ClusterPartitionFactory
extends DiskPartitionFactory


Field Summary
 
Fields inherited from class com.sun.labs.minion.indexer.partition.DiskPartitionFactory
cacheVectorLengths, documentDictFactory, mainDictFactory, mergeBuffSize, PROP_CACHE_VECTOR_LENGTHS, PROP_DOCUMENT_DICT_FACTORY, PROP_MAIN_DICT_FACTORY, PROP_MERGE_BUFF_SIZE, PROP_TERM_CACHE_SIZE, termCacheSize
 
Constructor Summary
ClusterPartitionFactory()
          Creates a ClusterPartitionFactory
 
Method Summary
 DiskPartition getDiskPartition(int number, PartitionManager m)
          Gets a disk partition with the given number, managed by the given manager.
 
Methods inherited from class com.sun.labs.minion.indexer.partition.DiskPartitionFactory
newProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterPartitionFactory

public ClusterPartitionFactory()
Creates a ClusterPartitionFactory

Method Detail

getDiskPartition

public DiskPartition getDiskPartition(int number,
                                      PartitionManager m)
                               throws java.io.IOException
Description copied from class: DiskPartitionFactory
Gets a disk partition with the given number, managed by the given manager.

Overrides:
getDiskPartition in class DiskPartitionFactory
Parameters:
number - the partition number that we want to get
m - the manager that will be managing the partition
Returns:
the partition with the given number
Throws:
java.io.IOException - if there is any error opening the partition