All Known Implementing Classes:
OResultBinary, OResultInternal, OTraverseResult, OUpdatableResult

public interface OResult
Created by luigidellaquila on 21/07/16.
  • Method Details

    • getProperty

      <T> T getProperty(String name)
      returns a property from the result
      Type Parameters:
      T -
      Parameters:
      name - the property name
      Returns:
      the property value. If the property value is a persistent record, it only returns the RID. See also getElementProperty(String) getVertexProperty(String) getEdgeProperty(String) getBlobProperty(String)
    • getElementProperty

      OElement getElementProperty(String name)
      returns an OElement property from the result
      Parameters:
      name - the property name
      Returns:
      the property value. Null if the property is not defined or if it's not an OElement
    • getVertexProperty

      OVertex getVertexProperty(String name)
      returns an OVertex property from the result
      Parameters:
      name - the property name
      Returns:
      the property value. Null if the property is not defined or if it's not an OVertex
    • getEdgeProperty

      OEdge getEdgeProperty(String name)
      returns an OEdge property from the result
      Parameters:
      name - the property name
      Returns:
      the property value. Null if the property is not defined or if it's not an OEdge
    • getBlobProperty

      OBlob getBlobProperty(String name)
      returns an OBlob property from the result
      Parameters:
      name - the property name
      Returns:
      the property value. Null if the property is not defined or if it's not an OBlob
    • getPropertyNames

      Set<String> getPropertyNames()
    • getIdentity

      Optional<ORID> getIdentity()
    • isElement

      boolean isElement()
    • getElement

      Optional<OElement> getElement()
    • toElement

      OElement toElement()
    • isVertex

      default boolean isVertex()
    • getVertex

      default Optional<OVertex> getVertex()
    • isEdge

      default boolean isEdge()
    • getEdge

      default Optional<OEdge> getEdge()
    • isBlob

      boolean isBlob()
    • getBlob

      Optional<OBlob> getBlob()
    • getRecord

      Optional<ORecord> getRecord()
    • isRecord

      default boolean isRecord()
    • isProjection

      boolean isProjection()
    • getMetadata

      Object getMetadata(String key)
      return metadata related to current result given a key
      Parameters:
      key - the metadata key
      Returns:
      metadata related to current result given a key
    • getMetadataKeys

      Set<String> getMetadataKeys()
      return all the metadata keys available
      Returns:
      all the metadata keys available
    • toJSON

      default String toJSON()
    • toJson

      default String toJson(Object val)
    • encode

      default String encode(String s)
    • hasProperty

      boolean hasProperty(String varName)