Class B2IStaticCompiledInfo
java.lang.Object
org.apache.derby.impl.store.access.btree.index.B2IStaticCompiledInfo
- All Implemented Interfaces:
Externalizable
,Serializable
,Formatable
,Storable
,TypedFormat
,StaticCompiledOpenConglomInfo
This class implements the static compiled information relevant to a btree
secondary index. It is what is returned by
B2I.getStaticCompiledOpenConglomInfo().
Currently the only interesting information stored is Conglomerate for this index and the Conglomerate for the base table of this conglomerate.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) B2I
Conglomerate data structure for this index.(package private) StaticCompiledOpenConglomInfo
Conglomerate data structure for this base table of this index. -
Constructor Summary
ConstructorsConstructorDescriptionEmpty arg constructor used by the monitor to create object to read into.Constructor used to build class from scratch. -
Method Summary
Modifier and TypeMethodDescriptionreturn the "Conglomerate".int
Return my format identifier.boolean
isNull()
Return whether the value is null or not.void
Restore the in-memory representation from the stream.void
void
Restore the in-memory representation to the null value.void
Store the stored representation of the column value in the stream.
-
Field Details
-
b2i
B2I b2iConglomerate data structure for this index. -
base_table_static_info
StaticCompiledOpenConglomInfo base_table_static_infoConglomerate data structure for this base table of this index.
-
-
Constructor Details
-
B2IStaticCompiledInfo
public B2IStaticCompiledInfo()Empty arg constructor used by the monitor to create object to read into. -
B2IStaticCompiledInfo
B2IStaticCompiledInfo(TransactionController tc, B2I b2i) throws StandardException Constructor used to build class from scratch.- Parameters:
b2i
- the btree Conglomerate that we are compiling.- Throws:
StandardException
-
-
Method Details
-
getConglom
return the "Conglomerate".For secondaryindex compiled info return the secondary index conglomerate.
- Specified by:
getConglom
in interfaceStaticCompiledOpenConglomInfo
- Returns:
- the secondary index Conglomerate Object.
-
isNull
public boolean isNull()Return whether the value is null or not. The containerid being zero is what determines nullness; subclasses are not expected to override this method. -
restoreToNull
public void restoreToNull()Restore the in-memory representation to the null value. The containerid being zero is what determines nullness; subclasses are not expected to override this method.- Specified by:
restoreToNull
in interfaceStorable
- See Also:
-
getTypeFormatId
public int getTypeFormatId()Return my format identifier.- Specified by:
getTypeFormatId
in interfaceTypedFormat
- Returns:
- The identifier. (A UUID stuffed in an array of 16 bytes).
- See Also:
-
readExternal
Restore the in-memory representation from the stream.- Specified by:
readExternal
in interfaceExternalizable
- Throws:
ClassNotFoundException
- Thrown if the stored representation is serialized and a class named in the stream could not be found.IOException
- thrown by readObject()- See Also:
-
readExternalFromArray
- Throws:
IOException
ClassNotFoundException
-
writeExternal
Store the stored representation of the column value in the stream. It might be easier to simply store the properties - which would certainly make upgrading easier.- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
- thrown by writeObject()
-