org.apache.derby.impl.store.access.btree.index
Class B2IStaticCompiledInfo
- java.lang.Object
-
- org.apache.derby.impl.store.access.btree.index.B2IStaticCompiledInfo
-
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, Formatable, Storable, TypedFormat, StaticCompiledOpenConglomInfo
public class B2IStaticCompiledInfo extends java.lang.Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description B2IStaticCompiledInfo()Empty arg constructor used by the monitor to create object to read into.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DataValueDescriptorgetConglom()return the "Conglomerate".intgetTypeFormatId()Return my format identifier.booleanisNull()Return whether the value is null or not.voidreadExternal(java.io.ObjectInput in)Restore the in-memory representation from the stream.voidreadExternalFromArray(ArrayInputStream in)voidrestoreToNull()Restore the in-memory representation to the null value.voidwriteExternal(java.io.ObjectOutput out)Store the stored representation of the column value in the stream.
-
-
-
Constructor Detail
-
B2IStaticCompiledInfo
public B2IStaticCompiledInfo()
Empty arg constructor used by the monitor to create object to read into.
-
-
Method Detail
-
getConglom
public DataValueDescriptor getConglom()
return the "Conglomerate".For secondaryindex compiled info return the secondary index conglomerate.
- Specified by:
getConglomin 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.- Specified by:
isNullin interfaceStorable- Returns:
- true if the value is null and false otherwise.
- See Also:
Storable.isNull()
-
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:
restoreToNullin interfaceStorable- See Also:
Storable.restoreToNull()
-
getTypeFormatId
public int getTypeFormatId()
Return my format identifier.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Returns:
- The identifier. (A UUID stuffed in an array of 16 bytes).
- See Also:
TypedFormat.getTypeFormatId()
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundExceptionRestore the in-memory representation from the stream.- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.lang.ClassNotFoundException- Thrown if the stored representation is serialized and a class named in the stream could not be found.java.io.IOException- thrown by readObject()- See Also:
Externalizable.readExternal(java.io.ObjectInput)
-
readExternalFromArray
public void readExternalFromArray(ArrayInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOExceptionStore 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:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException- thrown by writeObject()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG