You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Sandeep Chada (JIRA)" <ji...@apache.org> on 2018/08/03 08:16:00 UTC

[jira] [Created] (CALCITE-2443) Ability to pass ClientCache object to GeodeSchema constructor

Sandeep Chada created CALCITE-2443:
--------------------------------------

             Summary: Ability to pass ClientCache object to GeodeSchema constructor
                 Key: CALCITE-2443
                 URL: https://issues.apache.org/jira/browse/CALCITE-2443
             Project: Calcite
          Issue Type: Improvement
          Components: geode
            Reporter: Sandeep Chada
            Assignee: Julian Hyde


Would like to create a new Constructor inside GeodeSchema that takes in the clientCache as a parameter. 

We have a use case where the creation of geode clientCache is done in a separate api library.

This the change I am proposing

public GeodeSchema(String locatorHost, int locatorPort,
 String[] regionNames, String pdxAutoSerializerPackageExp,
 SchemaPlus parentSchema) {
 this(regionNames,createClientCache(locatorHost, locatorPort,
 pdxAutoSerializerPackageExp, true) ,parentSchema);
}

public GeodeSchema(String[] regionNames, ClientCache clientCache, SchemaPlus parentSchema) {
 super();
 this.regionNames = regionNames;
 this.parentSchema = parentSchema;
 this.clientCache = clientCache;
}

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)