[ 
https://issues.apache.org/jira/browse/DERBY-2557?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-2557:
-----------------------------------

    Attachment: 
DERBY2557_getObject_Using_CollationType_FormatID_interface_on_DVF_v1_stat.txt
                
DERBY2557_getObject_Using_CollationType_FormatID_interface_on_DVF_v1_diff.txt

Committed the patch 
DERBY2557_getObject_Using_CollationType_FormatID_interface_on_DVF_v1_diff.txt 
using revision 529697.

This change provides a new interface on DataValueFactory(DVF) which will be 
used by Store. Store has format ids and collation types and needs to have 
Objects created based on that information. This object creation will be 
supported by the new interface on DVF and it is called 
getInstanceUsingFormatIdAndCollationType.
DVF will keep an array of InstanceGetters for all the format ids supported by 
Derby. Initially, this array won't have anything. Every time this new interface 
is called on a new format id, the InstnaceGetter obtained will be saved in that 
array so next time around, we don't need to create a new InstanceGetter for the 
same format id. The next time around, the new interface will find the 
InstanceGetter in the array and will use that to create an object based on 
format id. If the collation type passed to the interface is UCS_BASIC, then the 
new interface will simply return that object. If the collation type is 
territory based and the object returned for the format id is of type 
StringDataValue, then the new interface will create a new DVD which is based on 
the territory based collation by calling DVD.getValue(TerritoryBasedCollator).


> Provide a new interface on DataValueFactory(DVF) called 
> getInstanceUsingFormatIdAndCollationType(formatId, collationType). This api 
> will replace similar code in Monitor.
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2557
>                 URL: https://issues.apache.org/jira/browse/DERBY-2557
>             Project: Derby
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 10.3.0.0
>            Reporter: Mamta A. Satoor
>         Assigned To: Mamta A. Satoor
>         Attachments: 
> DERBY2557_getObject_Using_CollationType_FormatID_interface_on_DVF_v1_diff.txt,
>  DERBY2557_getObject_Using_CollationType_FormatID_interface_on_DVF_v1_stat.txt
>
>
> Provide a new interface, called 
> getInstanceUsingFormatIdAndCollationType(formatId, collationType) on DVF. 
> Store will call this interface to create empty DVD objects and then load 
> these DVD objects using readExternal. For performance efficiency, when Store 
> needs more of the same base DVD, then on subsequent needs, it will call 
> DVD.getNewNull rather than calling 
> DVF.getInstanceUsingFormatIdAndCollationType again. This work is required for 
> DERBY-2537.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to