Class PgqlResultElement


  • public class PgqlResultElement
    extends java.lang.Object
    Type and variable name information on a pattern matching result element.
    • Constructor Detail

      • PgqlResultElement

        public PgqlResultElement()
      • PgqlResultElement

        public PgqlResultElement​(PgqlResultElement.Type elementType,
                                 java.lang.String varName,
                                 IdType vertexEdgeIdType)
        Constructor
        Parameters:
        elementType - type of a result element
        varName - variable name corresponding a result element
        vertexEdgeIdType - id type of a vertex or an edge
      • PgqlResultElement

        public PgqlResultElement​(PgqlResultElement.Type elementType,
                                 PgqlResultElement.Type collectionElementType,
                                 java.lang.String varName,
                                 IdType vertexEdgeIdType)
        Constructor
        Parameters:
        elementType - type of a result element
        collectionElementType - type of the elements stored in the result element collection
        varName - variable name corresponding a result element
        vertexEdgeIdType - id type of a vertex or an edge
    • Method Detail

      • getVarName

        public java.lang.String getVarName()
        Gets the variable name of the result element
        Returns:
        variable name
      • getElementType

        public PgqlResultElement.Type getElementType()
        Gets the type of this result element
        Returns:
        result element type
      • getCollectionElementType

        public PgqlResultElement.Type getCollectionElementType()
        Gets the type of the elements stored in the collection if the result element is a collection
        Returns:
        type of the elements stored in the collection if the result element is a collection, null otherwise
      • getVertexEdgeIdType

        public IdType getVertexEdgeIdType()
        Gets the type of vertex/edge result elements.
        Returns:
        type of vertex/edge result elements or NULL if getElementType() is not vertex/edge.