[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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) {
 this.regionNames = regionNames;
 this.parentSchema = parentSchema;
 this.clientCache = clientCache;



This message was sent by Atlassian JIRA