Interface CqnSource

All Superinterfaces:
CqnToken, JSONizable
All Known Subinterfaces:
CqnHierarchy, CqnHierarchyGenerator, CqnHierarchySubset, CqnJoin, CqnSelect, CqnStructuredTypeRef, CqnTableFunction, Hierarchy, HierarchySubset, Source<T>, StructuredType<T>, StructuredTypeRef, TableFunction
All Known Implementing Classes:
Select

public interface CqnSource extends CqnToken
  • Method Details

    • isRef

      default boolean isRef()
      Returns true if this is a CqnStructuredTypeRef.
      Returns:
      true if this is a structured type reference, otherwise false
    • isSelect

      default boolean isSelect()
      Returns true if this is a CqnSelect statement.
      Returns:
      true if this is a select statement, otherwise false
    • isJoin

      default boolean isJoin()
      Returns true if this is a CqnJoin.
      Returns:
      true if this is a join, otherwise false
    • isTableFunction

      @Beta default boolean isTableFunction()
      Returns true if this is a CqnTableFunction.
      Returns:
      true if this is a table function, otherwise false
    • asRef

      default CqnStructuredTypeRef asRef()
      Casts this CQN source to CqnSelect.
      Returns:
      this CQN source as a CqnSelect
      Throws:
      ClassCastException - if this CQN source is not a select
    • asSelect

      default CqnSelect asSelect()
      Casts this CQN source to a CqnSelect.
      Returns:
      this CQN source as a CqnSelect
      Throws:
      ClassCastException - if this CQN source is not a select
    • asJoin

      default CqnJoin asJoin()
      Casts this CQN source to a CqnJoin.
      Returns:
      this CQN source as a CqnJoin
      Throws:
      ClassCastException - if this CQN source is not a join
    • asTableFunction

      @Beta default CqnTableFunction asTableFunction()
      Casts this CQN source to a CqnTableFunction.
      Returns:
      this CQN source as a CqnTableFunction
      Throws:
      ClassCastException - if this CQN source is no table function