[ 
https://issues.apache.org/jira/browse/DERBY-6809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14551211#comment-14551211
 ] 

Rick Hillegas commented on DERBY-6809:
--------------------------------------

Hi Sagar,

Derby's modules are classes which implement the 
org.apache.derby.iapi.services.monitor.ModuleControl interface. These modules 
are listed in java/engine/org/apache/derby/modules.properties. Some of these 
modules are platform-specific. The header comment in that file is a little 
stale and a little cryptic, but it explains the mechanism by which Derby 
decides which version of a module to load. I recommend following the pattern 
used by the 2 implementations of the JDBC driver module (InternalDriver and 
Driver42).

If you are interested in sorting, then I recommend that you start out trying to 
implement a Java 8 version of the SortFactory module. Right now there is only 
one, platform-agnostic version of that module. It is described in 
modules.properties by these lines:

derby.module.access.sort=org.apache.derby.impl.store.access.sort.ExternalSortFactory
cloudscape.config.access.sort=all

I'm a little rusty here, but I think that what you need to do is change those 
lines to the following in order to say that ExternalSortFactory is used for 
Java 6 and 7...

derby.module.access.sort6=org.apache.derby.impl.store.access.sort.ExternalSortFactory
derby.env.jdk.access.sort6=7
cloudscape.config.access.sort6=derby

...and then add another block of directives to describe the Java 8 sort factory 
which you are going to write...

derby.module.access.sort8=org.apache.derby.impl.store.access.sort.MyJava8SortFactory
derby.env.jdk.access.sort8=9
cloudscape.config.access.sort8=derby

You may have to play around with this. It's a little tricky.

Hope this helps,
-Rick


> Java 1.8 feature use
> --------------------
>
>                 Key: DERBY-6809
>                 URL: https://issues.apache.org/jira/browse/DERBY-6809
>             Project: Derby
>          Issue Type: Improvement
>          Components: Network Server
>    Affects Versions: 11.0.0.0
>            Reporter: sagar
>
> Suggestion ...
> Is it possible to auto modify the existing source code using tools like 
> Netbeans, and take advantage of the new features in JDK 1.8 for better 
> multiuser performance and better utilization of current day multicore 
> processors?
> Plainly put, can we have from 11.0 onwards a version of derby which takes 
> advantage of the advancements and new features in java 1.8 ... 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to