THomas,

What are the significance of the DataType memory size values. Is this the size 
of the value instance + the contained data or something else? I assume you 
arrived at them experimentally.




>     public int memory;
> 
>     static {
>         for (int i = 0; i < Value.TYPE_COUNT; i++) {
>             TYPES_BY_VALUE_TYPE.add(null);
>         }
>         add(Value.NULL, Types.NULL, "Null",
>                 new DataType(),
>                 new String[]{"NULL"},
>                 1
>         );
>         add(Value.STRING, Types.VARCHAR, "String",
>                 createString(true),
>                 new String[]{"VARCHAR", "VARCHAR2", "NVARCHAR", "NVARCHAR2", 
> "VARCHAR_CASESENSITIVE", "CHARACTER VARYING", "TID"},
>                 4
>         );
>         add(Value.STRING, Types.LONGVARCHAR, "String",
>                 createString(true),
>                 new String[]{"LONGVARCHAR", "LONGNVARCHAR"},
>                 4
>         );
>         add(Value.STRING_FIXED, Types.CHAR, "String",
>                 createString(true),
>                 new String[]{"CHAR", "CHARACTER", "NCHAR"},
>                 4
>         );
>         add(Value.STRING_IGNORECASE, Types.VARCHAR, "String",
>                 createString(false),
>                 new String[]{"VARCHAR_IGNORECASE"},
>                 4

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to