Class B2I_v10_2
java.lang.Object
org.apache.derby.iapi.types.DataType
org.apache.derby.impl.store.access.conglomerate.GenericConglomerate
org.apache.derby.impl.store.access.btree.BTree
org.apache.derby.impl.store.access.btree.index.B2I
org.apache.derby.impl.store.access.btree.index.B2I_v10_2
- All Implemented Interfaces:
Externalizable, Serializable, Comparable, Formatable, Storable, TypedFormat, Conglomerate, DataValueDescriptor, Orderable
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.
- See Also:
-
Field Summary
Fields inherited from class B2I
baseConglomerateId, FORMAT_NUMBER, rowLocationColumnFields inherited from class BTree
ascDescInfo, collation_ids, conglom_format_id, format_ids, hasCollatedTypes, id, nKeyFields, PROPERTY_ALLOWDUPLICATES, PROPERTY_MAX_ROWS_PER_PAGE_PARAMETER, PROPERTY_NKEYFIELDS, PROPERTY_NUNIQUECOLUMNS, PROPERTY_PARENTLINKS, PROPERTY_UNIQUE_WITH_DUPLICATE_NULLS, ROOTPAGEIDFields inherited from interface DataValueDescriptor
UNKNOWN_LOGICAL_LENGTHFields inherited from interface Orderable
ORDER_OP_EQUALS, ORDER_OP_GREATEROREQUALS, ORDER_OP_GREATERTHAN, ORDER_OP_LESSOREQUALS, ORDER_OP_LESSTHAN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturn my format identifier.voidStore the stored representation of the column value in the stream.Methods inherited from class B2I
compressConglomerate, create, defragmentConglomerate, drop, estimateMemoryUsage, fetchMaxOnBTree, getBtreeLockingPolicy, getStaticCompiledConglomInfo, load, lockTable, open, openScan, openStoreCost, purgeConglomerate, readExternal, writeExternal_v10_2, writeExternal_v10_3Methods inherited from class BTree
addColumn, create, createTemplate, getContainerid, getDynamicCompiledConglomInfo, getId, isNull, isTemporary, isUnique, isUniqueWithDuplicateNulls, restoreToNull, setUniqueWithDuplicateNulls, toStringMethods inherited from class GenericConglomerate
cloneValue, compare, getLength, getNewNull, getObject, getString, getTypeName, hasCollatedColumns, setFrom, setValueFromResultSetMethods inherited from class DataType
checkHostVariable, cloneHolder, coalesce, compare, compare, compare, compareTo, dataTypeConversion, equals, equals, flip, getBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getShort, getStream, getTime, getTimestamp, getTraceString, greaterOrEquals, greaterThan, hasStream, in, invalidFormat, isNotNull, isNullOp, lessOrEquals, lessThan, normalize, notEquals, outOfRange, readExternalFromArray, recycle, setBigDecimal, setInto, setInto, setObjectForCast, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, throwLangSetMismatch, typePrecedence, typeToBigDecimalMethods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface DataValueDescriptor
checkHostVariable, cloneHolder, coalesce, compare, compare, compare, equals, getBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getShort, getStream, getTime, getTimestamp, getTraceString, greaterOrEquals, greaterThan, hasStream, in, isNotNull, isNullOp, lessOrEquals, lessThan, normalize, notEquals, readExternalFromArray, recycle, setBigDecimal, setInto, setInto, setObjectForCast, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, typePrecedence, typeToBigDecimal
-
Constructor Details
-
B2I_v10_2
public B2I_v10_2()No arg constructor, required by Formatable.
-
-
Method Details
-
getTypeFormatId
public int 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.
- Specified by:
getTypeFormatIdin interfaceTypedFormat- Overrides:
getTypeFormatIdin classB2I- Returns:
- The identifier. (A UUID stuffed in an array of 16 bytes).
- See Also:
-
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.
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classB2I- Throws:
IOException- thrown by writeObject()- See Also:
-