Class GeodeSimpleSchema
- java.lang.Object
-
- org.apache.calcite.schema.impl.AbstractSchema
-
- org.apache.calcite.adapter.geode.simple.GeodeSimpleSchema
-
- All Implemented Interfaces:
Schema
public class GeodeSimpleSchema extends AbstractSchema
Geode Simple Schema.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.calcite.schema.impl.AbstractSchema
AbstractSchema.Factory
-
Nested classes/interfaces inherited from interface org.apache.calcite.schema.Schema
Schema.TableType
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.geode.cache.client.ClientCache
clientCache
private java.lang.String
locatorHost
private int
locatorPort
private java.lang.String
pdxAutoSerializerPackageExp
private java.lang.String[]
regionNames
private com.google.common.collect.ImmutableMap<java.lang.String,Table>
tableMap
-
Constructor Summary
Constructors Constructor Description GeodeSimpleSchema(java.lang.String locatorHost, int locatorPort, java.lang.String[] regionNames, java.lang.String pdxAutoSerializerPackageExp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,Table>
getTableMap()
Returns a map of tables in this schema by name.-
Methods inherited from class org.apache.calcite.schema.impl.AbstractSchema
getExpression, getFunctionMultimap, getFunctionNames, getFunctions, getSubSchema, getSubSchemaMap, getSubSchemaNames, getTable, getTableNames, getType, getTypeMap, getTypeNames, isMutable, snapshot
-
-
-
-
Field Detail
-
locatorHost
private java.lang.String locatorHost
-
locatorPort
private int locatorPort
-
regionNames
private java.lang.String[] regionNames
-
pdxAutoSerializerPackageExp
private java.lang.String pdxAutoSerializerPackageExp
-
clientCache
private org.apache.geode.cache.client.ClientCache clientCache
-
tableMap
private com.google.common.collect.ImmutableMap<java.lang.String,Table> tableMap
-
-
Method Detail
-
getTableMap
protected java.util.Map<java.lang.String,Table> getTableMap()
Description copied from class:AbstractSchema
Returns a map of tables in this schema by name.The implementations of
AbstractSchema.getTableNames()
andAbstractSchema.getTable(String)
depend on this map. The default implementation of this method returns the empty map. Override this method to change their behavior.- Overrides:
getTableMap
in classAbstractSchema
- Returns:
- Map of tables in this schema by name
-
-