|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.util14.Enum14.BasicValue net.sf.farrago.fennel.tuple.FennelStandardTypeDescriptor net.sf.farrago.fennel.tuple.FennelStandardTypeDescriptor.FennelType
private abstract static class FennelStandardTypeDescriptor.FennelType
Abstract base class for all types.
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 |
Constructor Summary | |
---|---|
FennelStandardTypeDescriptor.FennelType(String name,
int ordinal)
|
Method Summary | |
---|---|
int |
getAlignmentByteCount(int width)
Gets the alignment size in bytes required for values of this type, given a particular max byte count. |
int |
getBitCount()
Returns number of bits in marshalled representation, or 0 for a non-bit type; currently only 0 or 1 is supported. |
int |
getFixedByteCount()
Returns the width in bytes for a fixed-width non-bit type which admits no per-attribute precision, or 0 for types with per-attribute precision; for bit types, this yields the size of the unmarshalled representation. |
int |
getMinByteCount(int maxWidth)
Gets the number of bytes required to store the narrowest value with this type, given a particular max byte count. |
boolean |
isExact()
Returns whether this ordinal is an exact numeric. |
boolean |
isNumeric()
Returns whether this type is numeric. |
boolean |
isSigned()
Indicates whether numeric data type is signed. |
Methods inherited from class net.sf.farrago.fennel.tuple.FennelStandardTypeDescriptor |
---|
forOrdinal, get, isApprox, isArray, isBinaryArray, isFixedLenArray, isIntegralNative, isNative, isNativeNotBool, isTextArray, isVariableLenArray |
Methods inherited from class org.eigenbase.util14.Enum14.BasicValue |
---|
compareTo, equals, equals, getDescription, getName, getOrdinal, hashCode, toString, unexpected |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.farrago.fennel.tuple.FennelStoredTypeDescriptor |
---|
getOrdinal, newAttributeAccessor |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
FennelStandardTypeDescriptor.FennelType(String name, int ordinal)
Method Detail |
---|
public int getBitCount()
FennelStoredTypeDescriptor
getBitCount
in interface FennelStoredTypeDescriptor
public int getFixedByteCount()
FennelStoredTypeDescriptor
getFixedByteCount
in interface FennelStoredTypeDescriptor
public int getMinByteCount(int maxWidth)
FennelStoredTypeDescriptor
getMinByteCount
in interface FennelStoredTypeDescriptor
maxWidth
- maximum width for which to compute the minimum
public int getAlignmentByteCount(int width)
FennelStoredTypeDescriptor
getAlignmentByteCount
in interface FennelStoredTypeDescriptor
width
- width for which to compute the alignment
public boolean isExact()
FennelStandardTypeDescriptor
isExact
in interface FennelStoredTypeDescriptor
isExact
in class FennelStandardTypeDescriptor
public boolean isSigned()
FennelStoredTypeDescriptor
isSigned
in interface FennelStoredTypeDescriptor
public boolean isNumeric()
FennelStandardTypeDescriptor
isNumeric
in class FennelStandardTypeDescriptor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |