Package oracle.pgx.api
Class PgqlResultElement
- java.lang.Object
-
- oracle.pgx.api.PgqlResultElement
-
public class PgqlResultElement extends java.lang.Object
Type and variable name information on a pattern matching result element.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PgqlResultElement.Type
Type of a result element.
-
Constructor Summary
Constructors Constructor Description PgqlResultElement()
PgqlResultElement(PgqlResultElement.Type elementType, java.lang.String varName, IdType vertexEdgeIdType)
ConstructorPgqlResultElement(PgqlResultElement.Type elementType, PgqlResultElement.Type collectionElementType, java.lang.String varName, IdType vertexEdgeIdType)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PgqlResultElement.Type
getCollectionElementType()
Gets the type of the elements stored in the collection if the result element is a collectionPgqlResultElement.Type
getElementType()
Gets the type of this result elementjava.lang.String
getVarName()
Gets the variable name of the result elementIdType
getVertexEdgeIdType()
Gets the type of vertex/edge result elements.
-
-
-
Constructor Detail
-
PgqlResultElement
public PgqlResultElement()
-
PgqlResultElement
public PgqlResultElement(PgqlResultElement.Type elementType, java.lang.String varName, IdType vertexEdgeIdType)
Constructor- Parameters:
elementType
- type of a result elementvarName
- variable name corresponding a result elementvertexEdgeIdType
- 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 elementcollectionElementType
- type of the elements stored in the result element collectionvarName
- variable name corresponding a result elementvertexEdgeIdType
- 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.
-
-