db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Trivial Update of "JavaTableFunctions" by DanDebrunner
Date Fri, 22 Sep 2006 22:01:06 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by DanDebrunner:
http://wiki.apache.org/db-derby/JavaTableFunctions

------------------------------------------------------------------------------
  
  General.
  
-  * Maintaining the table's state from a Java '''static''' method seems hard. The StringBuffer
(or the alternative of a String object) is where the state is meant to be stored. Saving object
state to and from a StringBuffer on every call seems very expensive. Maybe some scheme of
a unique tag saved using the StringBuffer, and then a static HashMap in the class of the method
to map the tag into the state. How to generate uniqueness and how to ensure cleanup?
+  * Maintaining the table's state from a Java '''static''' method seems hard. The !StringBuffer
(or the alternative of a String object) is where the state is meant to be stored. Saving object
state to and from a StringBuffer on every call seems very expensive. Maybe some scheme of
a unique tag saved using the !StringBuffer, and then a static !HashMap in the class of the
method to map the tag into the state. How to generate uniqueness and how to ensure cleanup?
  
  As a VTI replacement
  

Mime
View raw message