java.lang.Object
com.orientechnologies.orient.core.serialization.serializer.record.binary.OResultBinary
All Implemented Interfaces:
OResult

public class OResultBinary extends Object implements OResult
Author:
mdjurovi
  • Constructor Details

  • Method Details

    • getFieldLength

      public int getFieldLength()
    • getOffset

      public int getOffset()
    • getBytes

      public byte[] getBytes()
    • getProperty

      public <T> T getProperty(String name)
      Description copied from interface: OResult
      returns a property from the result
      Specified by:
      getProperty in interface OResult
      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 OResult.getElementProperty(String) OResult.getVertexProperty(String) OResult.getEdgeProperty(String) OResult.getBlobProperty(String)
    • getElementProperty

      public OElement getElementProperty(String name)
      Description copied from interface: OResult
      returns an OElement property from the result
      Specified by:
      getElementProperty in interface OResult
      Parameters:
      name - the property name
      Returns:
      the property value. Null if the property is not defined or if it's not an OElement
    • getVertexProperty

      public OVertex getVertexProperty(String name)
      Description copied from interface: OResult
      returns an OVertex property from the result
      Specified by:
      getVertexProperty in interface OResult
      Parameters:
      name - the property name
      Returns:
      the property value. Null if the property is not defined or if it's not an OVertex
    • getEdgeProperty

      public OEdge getEdgeProperty(String name)
      Description copied from interface: OResult
      returns an OEdge property from the result
      Specified by:
      getEdgeProperty in interface OResult
      Parameters:
      name - the property name
      Returns:
      the property value. Null if the property is not defined or if it's not an OEdge
    • getBlobProperty

      public OBlob getBlobProperty(String name)
      Description copied from interface: OResult
      returns an OBlob property from the result
      Specified by:
      getBlobProperty in interface OResult
      Parameters:
      name - the property name
      Returns:
      the property value. Null if the property is not defined or if it's not an OBlob
    • getPropertyNames

      public Set<String> getPropertyNames()
      Specified by:
      getPropertyNames in interface OResult
    • getIdentity

      public Optional<ORID> getIdentity()
      Specified by:
      getIdentity in interface OResult
    • isElement

      public boolean isElement()
      Specified by:
      isElement in interface OResult
    • getElement

      public Optional<OElement> getElement()
      Specified by:
      getElement in interface OResult
    • toElement

      public OElement toElement()
      Specified by:
      toElement in interface OResult
    • isBlob

      public boolean isBlob()
      Specified by:
      isBlob in interface OResult
    • getBlob

      public Optional<OBlob> getBlob()
      Specified by:
      getBlob in interface OResult
    • getRecord

      public Optional<ORecord> getRecord()
      Specified by:
      getRecord in interface OResult
    • isProjection

      public boolean isProjection()
      Specified by:
      isProjection in interface OResult
    • getMetadata

      public Object getMetadata(String key)
      Description copied from interface: OResult
      return metadata related to current result given a key
      Specified by:
      getMetadata in interface OResult
      Parameters:
      key - the metadata key
      Returns:
      metadata related to current result given a key
    • getMetadataKeys

      public Set<String> getMetadataKeys()
      Description copied from interface: OResult
      return all the metadata keys available
      Specified by:
      getMetadataKeys in interface OResult
      Returns:
      all the metadata keys available
    • hasProperty

      public boolean hasProperty(String varName)
      Specified by:
      hasProperty in interface OResult