db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "RPost" <rp0...@pacbell.net>
Subject Re: Questions about "getApproximateLengthInBytes()"
Date Sat, 26 Mar 2005 00:37:22 GMT
>"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?


Mime
View raw message