Class EmptyResult

    • Constructor Detail

      • EmptyResult

        public EmptyResult()
    • Method Detail

      • getProperty

        public <T> T getProperty​(String name)
        Description copied from interface: Result
        Returns the value for the property.
        Specified by:
        getProperty in interface Result
        Parameters:
        name - the property name
        Returns:
        the property value. If the property value is a persistent record, it only returns the RID. See also Result.getElementProperty(String)
      • getProperty

        public <T> T getProperty​(String name,
                                 Object defaultValue)
        Description copied from interface: Result
        Returns the value for the property. If the property does not exist, then the `defaultValue` is returned.
        Specified by:
        getProperty in interface Result
        Parameters:
        name - the property name
        defaultValue - default value to return in case the property is missing
        Returns:
        the property value. If the property value is a persistent record, it only returns the RID. See also Result.getElementProperty(String)
      • getElementProperty

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

        public boolean isElement()
        Specified by:
        isElement in interface Result
      • isProjection

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

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

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