net.sf.farrago.fennel.tuple
Class FennelStandardTypeDescriptor.Type_UNICODE_CHAR
java.lang.Object
org.eigenbase.util14.Enum14.BasicValue
net.sf.farrago.fennel.tuple.FennelStandardTypeDescriptor
net.sf.farrago.fennel.tuple.FennelStandardTypeDescriptor.FennelType
net.sf.farrago.fennel.tuple.FennelStandardTypeDescriptor.Type_UNICODE_CHAR
- All Implemented Interfaces:
- Serializable, Comparable, FennelStoredTypeDescriptor, Enum14.Value
- Enclosing class:
- FennelStandardTypeDescriptor
private static class FennelStandardTypeDescriptor.Type_UNICODE_CHAR
- extends FennelStandardTypeDescriptor.FennelType
Describes a fixed-width character string.
Field Summary |
private static long |
serialVersionUID
SerialVersionUID created with JDK 1.5 serialver tool. |
Fields inherited from class net.sf.farrago.fennel.tuple.FennelStandardTypeDescriptor |
BINARY, BINARY_ORDINAL, BOOL, BOOL_ORDINAL, CHAR, CHAR_ORDINAL, DOUBLE, DOUBLE_ORDINAL, enumeration, EXTENSION_MIN_ORDINAL, INT_16, INT_16_ORDINAL, INT_32, INT_32_ORDINAL, INT_64, INT_64_ORDINAL, INT_8, INT_8_ORDINAL, MIN_ORDINAL, REAL, REAL_ORDINAL, UINT_16, UINT_16_ORDINAL, UINT_32, UINT_32_ORDINAL, UINT_64, UINT_64_ORDINAL, UINT_8, UINT_8_ORDINAL, UNICODE_CHAR, UNICODE_CHAR_ORDINAL, UNICODE_VARCHAR, UNICODE_VARCHAR_ORDINAL, VARBINARY, VARBINARY_ORDINAL, VARCHAR, VARCHAR_ORDINAL |
Methods inherited from class net.sf.farrago.fennel.tuple.FennelStandardTypeDescriptor |
forOrdinal, get, isApprox, isArray, isBinaryArray, isFixedLenArray, isIntegralNative, isNative, isNativeNotBool, isTextArray, isVariableLenArray |
serialVersionUID
private static final long serialVersionUID
- SerialVersionUID created with JDK 1.5 serialver tool.
- See Also:
- Constant Field Values
FennelStandardTypeDescriptor.Type_UNICODE_CHAR
FennelStandardTypeDescriptor.Type_UNICODE_CHAR()
getFixedBitCount
public int getFixedBitCount()
getAlignmentByteCount
public int getAlignmentByteCount(int width)
- Description copied from interface:
FennelStoredTypeDescriptor
- Gets the alignment size in bytes required for values of this type, given
a particular max byte count. This must be 1, 2, 4, or 8, and may not be
greater than 1 for variable-width datatypes. For fixed-width datatypes,
the width must be a multiple of the alignment size.
- Specified by:
getAlignmentByteCount
in interface FennelStoredTypeDescriptor
- Overrides:
getAlignmentByteCount
in class FennelStandardTypeDescriptor.FennelType
- Parameters:
width
- width for which to compute the alignment
- Returns:
- number of bytes
getMinByteCount
public int getMinByteCount(int maxWidth)
- Description copied from interface:
FennelStoredTypeDescriptor
- Gets the number of bytes required to store the narrowest value with this
type, given a particular max byte count. For a fixed-width type, the
return value is the same as the input.
- Specified by:
getMinByteCount
in interface FennelStoredTypeDescriptor
- Overrides:
getMinByteCount
in class FennelStandardTypeDescriptor.FennelType
- Parameters:
maxWidth
- maximum width for which to compute the minimum
- Returns:
- number of bytes
newAttributeAccessor
public FennelAttributeAccessor newAttributeAccessor()
- Description copied from interface:
FennelStoredTypeDescriptor
- Creates an FennelAttributeAccessor appropriate for marshalling an element
of this type.
- Returns:
- FennelAttributeAccessor