Servertec
Persistent Object Store
1.4.1 09/04/2005

stec.pos
Class IndexUtils

java.lang.Object
  extended by stec.pos.IndexUtils

public final class IndexUtils
extends java.lang.Object

Static methods commonly used when working with indexes.

Since:
1.1.0 09/01/2002

Constructor Summary
IndexUtils()
           
 
Method Summary
static int order(java.lang.String values_class_name, int page_count)
          Returns the order for the specified values class name and page count.
static int order(java.lang.String key_class_name, java.lang.String value_class_name, int page_count, boolean duplicates)
          Returns the order for the specified key, value class names and page count.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexUtils

public IndexUtils()
Method Detail

order

public static final int order(java.lang.String key_class_name,
                              java.lang.String value_class_name,
                              int page_count,
                              boolean duplicates)
                       throws java.lang.IllegalArgumentException
Returns the order for the specified key, value class names and page count.

Parameters:
key_class_name - the class name for key objects.
value_class_name - the class name for value objects.
page_count - the number of 512 byte pages.
duplicates - whether duplicate values are allowed.
Returns:
the order.
Throws:
java.lang.IllegalArgumentException - if any of the parameters specified were not valid.

order

public static final int order(java.lang.String values_class_name,
                              int page_count)
                       throws java.lang.IllegalArgumentException
Returns the order for the specified values class name and page count.

Parameters:
values_class_name - the class name for value objects.
page_count - the number of 512 byte pages.
Returns:
the order.
Throws:
java.lang.IllegalArgumentException - if any of the parameters specified were not valid.

Servertec
Persistent Object Store
1.4.1 09/04/2005

Copyright © 2001-2005 Servertec. All rights reserved.