Top Description Fields Constructors Methods
org.apache.derby.impl.store.access.btree.index

public Class B2I_v10_2

extends B2I
Class Inheritance
Imports
org.apache.derby.iapi.services.io.StoredFormatIds, java.io.IOException, .ObjectOutput, .ObjectInput, java.lang.ClassNotFoundException

Class used to instantiate 10.2 version of the B2I object. This class implements the format of the B2I object as existed in the 10.2 and previous releases of Derby. In subsequent releases the format was enhanced to store the Collation Id of the columns in the index. Collation can be configured on a per column basis to allow for alter sort ordering of each column. One use of this is to allow a column to be sorted according to language based rules rather than the default numerical ordering of the binary value. For upgrade purpose all columns stored with ACCESS_B2I_V3_ID format are assumed to be USC_BASIC collation id (ie. the default numerical ordering, rather than any alternate collation). This class reads and writes the V3 version to/from disk and reads/writes current in-memory version of the data structure.

Field Summary

Inherited from org.apache.derby.impl.store.access.btree.index.B2I:
baseConglomerateIdFORMAT_NUMBERrowLocationColumn

Constructor Summary

AccessConstructor and Description
public
B2I_v10_2()

No arg constructor, required by Formatable.

Method Summary

Modifier and TypeMethod and Description
public int
public void
writeExternal(ObjectOutput
the stream to write the object to
out
)

Overrides org.apache.derby.impl.store.access.btree.index.B2I.writeExternal.

Implements java.io.Externalizable.writeExternal.

Store the stored representation of the column value in the stream.

Inherited from org.apache.derby.impl.store.access.btree.index.B2I:
compressConglomeratecreatedefragmentConglomeratedropestimateMemoryUsagefetchMaxOnBTreegetBtreeLockingPolicygetStaticCompiledConglomInfoloadlockTableopenopenScanopenStoreCostpurgeConglomeratereadExternalwriteExternal_v10_2writeExternal_v10_3

Constructor Detail

B2I_v10_2back to summary
public B2I_v10_2()

No arg constructor, required by Formatable.

Method Detail

getTypeFormatIdback to summary
public int getTypeFormatId()

Overrides org.apache.derby.impl.store.access.btree.index.B2I.getTypeFormatId.

Implements org.apache.derby.iapi.services.io.TypedFormat.getTypeFormatId.

Return my format identifier.

This identifier was used for B2I in all Derby versions prior to and including 10.2. Databases hard upgraded to a version subsequent to 10.2 will write the new format, see B2I. Databases created in a version subsequent to 10.2 will also write the new formate, see B2I.

Returns:int

Doc from org.apache.derby.iapi.services.io.TypedFormat.getTypeFormatId.

The identifier. (A UUID stuffed in an array of 16 bytes).

See Also
org.apache.derby.iapi.services.io.TypedFormat#getTypeFormatId
writeExternalback to summary
public void writeExternal(ObjectOutput out) throws IOException

Overrides org.apache.derby.impl.store.access.btree.index.B2I.writeExternal.

Implements java.io.Externalizable.writeExternal.

Store the stored representation of the column value in the stream.

For more detailed description of the format see documentation at top of file.

Parameters
out:ObjectOutput

Doc from java.io.Externalizable.writeExternal.

the stream to write the object to

Exceptions
IOException:

Doc from org.apache.derby.impl.store.access.btree.BTree.writeExternal.

thrown by writeObject()

See Also
java.io.Externalizable#writeExternal