Class GeodeTable

    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • regionName

        private final java.lang.String regionName
    • Constructor Detail

      • GeodeTable

        GeodeTable​(org.apache.geode.cache.Region<?,​?> region)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • query

        public Enumerable<java.lang.Object> query​(org.apache.geode.cache.GemFireCache clientCache,
                                                  java.util.List<java.util.Map.Entry<java.lang.String,​java.lang.Class>> fields,
                                                  java.util.List<java.util.Map.Entry<java.lang.String,​java.lang.String>> selectFields,
                                                  java.util.List<java.util.Map.Entry<java.lang.String,​java.lang.String>> aggregateFunctions,
                                                  java.util.List<java.lang.String> groupByFields,
                                                  java.util.List<java.lang.String> predicates,
                                                  java.util.List<java.lang.String> orderByFields,
                                                  java.lang.Long limit)
        Executes an OQL query on the underlying table.

        Called by the GeodeTable.GeodeQueryable which in turn is called via the generated code.

        Parameters:
        clientCache - Geode client cache
        fields - List of fields to project
        predicates - A list of predicates which should be used in the query
        Returns:
        Enumerator of results
      • getRowType

        public RelDataType getRowType​(RelDataTypeFactory typeFactory)
        Description copied from interface: Table
        Returns this table's row type.

        This is a struct type whose fields describe the names and types of the columns in this table.

        The implementer must use the type factory provided. This ensures that the type is converted into a canonical form; other equal types in the same query will use the same object.

        Specified by:
        getRowType in interface Table
        Parameters:
        typeFactory - Type factory with which to create the type
        Returns:
        Row type