>"Army" wrote:
> Questions about "getApproximateLengthInBytes()"
I also noticed that the 'estimated MemoryUsage() method in
DataTypeDescriptor.java has similar, but in some cases different, numbers.
For example this method doesn't include the +2:
case StoredFormatIds.CHAR_TYPE_ID:
case StoredFormatIds.VARCHAR_TYPE_ID:
case StoredFormatIds.NATIONAL_CHAR_TYPE_ID:
case StoredFormatIds.NATIONAL_VARCHAR_TYPE_ID:
return (double) (2.0 * getMaximumWidth());
Both DataTypeDescriptor and TypeId list the author as Jeff Lichtman. Did any
of you work with him?