org.apache.derby.impl.store.access.conglomerate
Class ConglomerateUtil

java.lang.Object
  extended byorg.apache.derby.impl.store.access.conglomerate.ConglomerateUtil

public final class ConglomerateUtil
extends java.lang.Object

Static utility routine package for all Conglomerates.

A collection of static utility routines that are shared by multiple Conglomerate implementations.


Constructor Summary
ConglomerateUtil()
           
 
Method Summary
static int[] createFormatIds(DataValueDescriptor[] template)
          Given an array of objects, return an array of format id's.
static java.util.Properties createRawStorePropertySet(java.util.Properties prop)
          Create a list of all the properties that Access wants to export through the getInternalTablePropertySet() call.
static java.util.Properties createUserRawStorePropertySet(java.util.Properties prop)
          Create a list of all the properties that Access wants to export through the getInternalTablePropertySet() call.
static java.lang.String debugPage(Page page, int start_slot, boolean full_rh, DataValueDescriptor[] template)
          Format a page of data, as access see's it.
static int[] readFormatIdArray(int num, java.io.ObjectInput in)
          Read a format id array in from a stream.
static void writeFormatIdArray(int[] format_id_array, java.io.ObjectOutput out)
          Write a format id array to a stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConglomerateUtil

public ConglomerateUtil()
Method Detail

createRawStorePropertySet

public static java.util.Properties createRawStorePropertySet(java.util.Properties prop)
Create a list of all the properties that Access wants to export through the getInternalTablePropertySet() call.

This utility routine creates a list of properties that are shared by all conglomerates. This list contains the following: derby.storage.initialPages derby.storage.minimumRecordSize derby.storage.pageReservedSpace derby.storage.pageSize derby.storage.reusableRecordId

Parameters:
prop - If non-null the property set to fill in.
Returns:
The Property set filled in.

createUserRawStorePropertySet

public static java.util.Properties createUserRawStorePropertySet(java.util.Properties prop)
Create a list of all the properties that Access wants to export through the getInternalTablePropertySet() call.

This utility routine creates a list of properties that are shared by all conglomerates. This list contains the following: derby.storage.initialPages derby.storage.minimumRecordSize derby.storage.pageReservedSpace derby.storage.pageSize

Parameters:
prop - If non-null the property set to fill in.
Returns:
The Property set filled in.

createFormatIds

public static int[] createFormatIds(DataValueDescriptor[] template)
Given an array of objects, return an array of format id's.

Parameters:
template - a row.
Returns:
An array of format id's describing the input array of objects.

readFormatIdArray

public static int[] readFormatIdArray(int num,
                                      java.io.ObjectInput in)
                               throws java.io.IOException
Read a format id array in from a stream.

Parameters:
num - The number of format ids to read.
in - The stream to read the array of format id's from.
Returns:
A new array of format id's.
Throws:
java.io.IOException - Thown on read error.

writeFormatIdArray

public static void writeFormatIdArray(int[] format_id_array,
                                      java.io.ObjectOutput out)
                               throws java.io.IOException
Write a format id array to a stream.

Parameters:
format_id_array - The number of format ids to read.
out - The stream to write the array of format id's to.
Throws:
java.io.IOException - Thown on write error.

debugPage

public static java.lang.String debugPage(Page page,
                                         int start_slot,
                                         boolean full_rh,
                                         DataValueDescriptor[] template)
Format a page of data, as access see's it.



Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.