Top Fields Constructors Methods
org.apache.derby.impl.sql.compile

public final Class VarbitConstantNode

extends BitConstantNode
Class Inheritance
Imports
java.sql.Types, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.services.context.ContextManager, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.types.TypeId

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv final int
kind

This class is used to hold logically different objects for space efficiency.

Constructor Summary

AccessConstructor and Description
pack-priv
VarbitConstantNode(TypeId
the type for which we want a constant node
t
,
ContextManager
context manager
cm
)

Construct constant node for one of VARBINARY, LONG VARBINARY and BLOB types.

pack-priv
VarbitConstantNode(String hexValue, int bitLength, ContextManager cm)

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
isSameNodeKind(ValueNode
The other value node whose kind we want to compare with.
o
)

Overrides org.apache.derby.impl.sql.compile.ValueNode.isSameNodeKind.

Some node classes represent several logical node types (to reduce footprint), which we call kinds.

Inherited from org.apache.derby.impl.sql.compile.BitConstantNode:
generateConstantgetConstantValueAsObject

Field Detail

K_BLOBback to summary
pack-priv static final int K_BLOB
K_LONGVARback to summary
pack-priv static final int K_LONGVAR
K_VARback to summary
pack-priv static final int K_VAR
kindback to summary
pack-priv final int kind

This class is used to hold logically different objects for space efficiency. kind represents the logical object type. See also ValueNode#isSameNodeKind.

Constructor Detail

VarbitConstantNodeback to summary
pack-priv VarbitConstantNode(TypeId t, ContextManager cm) throws StandardException

Construct constant node for one of VARBINARY, LONG VARBINARY and BLOB types.

Parameters
t:TypeId

the type for which we want a constant node

cm:ContextManager

context manager

VarbitConstantNodeback to summary
pack-priv VarbitConstantNode(String hexValue, int bitLength, ContextManager cm) throws StandardException

Method Detail

isSameNodeKindback to summary
pack-priv boolean isSameNodeKind(ValueNode o)

Overrides org.apache.derby.impl.sql.compile.ValueNode.isSameNodeKind.

Doc from org.apache.derby.impl.sql.compile.ValueNode.isSameNodeKind.

Some node classes represent several logical node types (to reduce footprint), which we call kinds. This means that implementations of isEquivalent cannot always just use instanceof to check if the other node represents the same kind. Hence this method needs to be overridden by all node classes that represent several kinds. This default implementation does not look at kinds. It is only called from implementations of isEquivalent.

Parameters
o:ValueNode

The other value node whose kind we want to compare with.

Returns:boolean

true if this and o represent the same logical node type, i.e. kind.

Annotations
@Override