|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.indexer.partition.DiskPartitionFactory
public class DiskPartitionFactory
A factory class for generating memory partitions and disk partitions during indexing and querying.
| Field Summary | |
|---|---|
protected boolean |
cacheVectorLengths
|
protected DictionaryFactory |
documentDictFactory
The document dictionary factory. |
protected DictionaryFactory |
mainDictFactory
The main dictionary factory. |
protected int |
mergeBuffSize
The size of the merge buffer. |
static java.lang.String |
PROP_CACHE_VECTOR_LENGTHS
|
static java.lang.String |
PROP_DOCUMENT_DICT_FACTORY
A property for the factory that we'll use to create the document dictionaries for partitions. |
static java.lang.String |
PROP_MAIN_DICT_FACTORY
A property for the factory that we'll use to create the main dictionary. |
static java.lang.String |
PROP_MERGE_BUFF_SIZE
A property for the size of the in-memory buffer to use when merging partitions. |
static java.lang.String |
PROP_TERM_CACHE_SIZE
|
protected int |
termCacheSize
|
| Constructor Summary | |
|---|---|
DiskPartitionFactory()
Creates a new instance of DiskPartitionFactory |
|
| 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 |
|---|
@ConfigComponent(type=DictionaryFactory.class) public static final java.lang.String PROP_MAIN_DICT_FACTORY
protected DictionaryFactory mainDictFactory
@ConfigComponent(type=DictionaryFactory.class) public static final java.lang.String PROP_DOCUMENT_DICT_FACTORY
protected DictionaryFactory documentDictFactory
@ConfigInteger(defaultValue=1048576) public static final java.lang.String PROP_MERGE_BUFF_SIZE
protected int mergeBuffSize
@ConfigBoolean(defaultValue=false) public static final java.lang.String PROP_CACHE_VECTOR_LENGTHS
protected boolean cacheVectorLengths
@ConfigInteger(defaultValue=0) public static final java.lang.String PROP_TERM_CACHE_SIZE
protected int termCacheSize
| Constructor Detail |
|---|
public DiskPartitionFactory()
| Method Detail |
|---|
public void newProperties(com.sun.labs.util.props.PropertySheet ps)
throws com.sun.labs.util.props.PropertyException
newProperties in interface com.sun.labs.util.props.Configurablecom.sun.labs.util.props.PropertyException
public DiskPartition getDiskPartition(int number,
PartitionManager m)
throws java.io.IOException
number - the partition number that we want to getm - the manager that will be managing the partition
java.io.IOException - if there is any error opening the partition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||