Interface CqnVector

All Superinterfaces:
CqnLiteral<CdsVector>, CqnToken, CqnValue, JSONizable

@Beta public interface CqnVector extends CqnLiteral<CdsVector>
  • Method Details

    • isVector

      default boolean isVector()
      Description copied from interface: CqnLiteral
      Returns true if this is a CqnVector.
      Specified by:
      isVector in interface CqnLiteral<CdsVector>
      Returns:
      true if this is a vector, otherwise false
    • asVector

      default CqnVector asVector()
      Description copied from interface: CqnLiteral
      Casts this literal to CqnVector.
      Specified by:
      asVector in interface CqnLiteral<CdsVector>
      Returns:
      this literal as a vector
    • type

      default Optional<String> type()
      Description copied from interface: CqnValue
      Returns the optional CDS type of this value.
      Specified by:
      type in interface CqnValue
      Returns:
      the optional CDS type
    • isConstant

      default boolean isConstant()
      Description copied from interface: CqnLiteral
      Specifies if this CqnLiteral should be handled as a constant value during query execution.
      Specified by:
      isConstant in interface CqnLiteral<CdsVector>
      Returns:
      true if the literal can be handled as a constant value
    • accept

      default void accept(CqnVisitor visitor)
      Description copied from interface: CqnToken
      Traverses the expression tree represented by this token with a given visitor. The traversal order is depth-first. If this token has child nodes they are traversed first by dispatching the visitor to the children's accept methods. Afterwards this token is passed to the visitor's visit method specific for this token's type.
      Specified by:
      accept in interface CqnToken
      Parameters:
      visitor - the CqnVisitor