com.sun.labs.minion.indexer.partition
Class InvFilePartitionFactory

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

public class InvFilePartitionFactory
extends DiskPartitionFactory

A factory class for inverted file partitions.


Field Summary
static java.lang.String PROP_BIGRAM_DICT_FACTORY
           
static java.lang.String PROP_FIELD_STORE_DICT_FACTORY
           
static java.lang.String PROP_MIN_STEM_LENGTH
           
static java.lang.String PROP_STEM_MATCH_CUTOFF
           
 
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
InvFilePartitionFactory()
          Creates a InvFilePartitionFactory
 
Method Summary
 DiskPartition getDiskPartition(int number, PartitionManager m)
          Gets a disk partition with the given number, managed by the given manager.
 void newProperties(com.sun.labs.util.props.PropertySheet ps)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_FIELD_STORE_DICT_FACTORY

@ConfigComponent(type=DictionaryFactory.class)
public static final java.lang.String PROP_FIELD_STORE_DICT_FACTORY
See Also:
Constant Field Values

PROP_BIGRAM_DICT_FACTORY

@ConfigComponent(type=DictionaryFactory.class)
public static final java.lang.String PROP_BIGRAM_DICT_FACTORY
See Also:
Constant Field Values

PROP_MIN_STEM_LENGTH

@ConfigInteger(defaultValue=3)
public static final java.lang.String PROP_MIN_STEM_LENGTH
See Also:
Constant Field Values

PROP_STEM_MATCH_CUTOFF

@ConfigDouble(defaultValue=0.65)
public static final java.lang.String PROP_STEM_MATCH_CUTOFF
See Also:
Constant Field Values
Constructor Detail

InvFilePartitionFactory

public InvFilePartitionFactory()
Creates a InvFilePartitionFactory

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

newProperties

public void newProperties(com.sun.labs.util.props.PropertySheet ps)
                   throws com.sun.labs.util.props.PropertyException
Specified by:
newProperties in interface com.sun.labs.util.props.Configurable
Overrides:
newProperties in class DiskPartitionFactory
Throws:
com.sun.labs.util.props.PropertyException