Class QueryPlanInfo


  • public class QueryPlanInfo
    extends Object
    This class holds some additional information regarding the query plan that can be attached to the plan itself, without impacting its structure. This info can be added during planning to help reason about the plan and the planning process.
    • Constructor Detail

      • QueryPlanInfo

        public QueryPlanInfo()
    • Method Detail

      • containsKey

        public <T> boolean containsKey​(@Nonnull
                                       QueryPlanInfo.QueryPlanInfoKey<T> key)
        Returns TRUE if the given key exists in the info table.
        Type Parameters:
        T - The type of the value (not used in this method)
        Parameters:
        key - the key to look for
        Returns:
        TRUE if the key exists in the table, FALSE otherwise
      • get

        @Nullable
        public <T> T get​(@Nonnull
                         QueryPlanInfo.QueryPlanInfoKey<T> key)
        Retrieve a value from the info table.
        Type Parameters:
        T - the type of value returned (determined by the key generic type)
        Parameters:
        key - the key to look for
        Returns:
        the value for the key, null if not found
      • isEmpty

        public boolean isEmpty()
        Return TRUE if the info set is empty.
        Returns:
        TRUE if the info set is empty