Interface ResultSetRow


  • @AlfrescoPublicApi
    public interface ResultSetRow
    A row in a result set TODO: Support for other non attribute features such as parents and path
    Author:
    andyh
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ChildAssociationRef getChildAssocRef()  
      int getIndex()
      Get the index of this result set in the result set If you want the overall position in paged reults you have to add the skipCount fo the result set.
      NodeRef getNodeRef()
      The reference to the node that equates to this row in the result set
      NodeRef getNodeRef​(java.lang.String selectorName)
      Gets the node ref related to the named selector
      java.util.Map<java.lang.String,​NodeRef> getNodeRefs()
      Gets the node refs
      QName getQName()  
      ResultSet getResultSet()
      Get the containing result set
      float getScore()
      Get the score for this row in the result set
      float getScore​(java.lang.String selectorName)
      Get the score related to the named selector.
      java.util.Map<java.lang.String,​java.lang.Float> getScores()
      Get the scores .
      java.io.Serializable getValue​(java.lang.String columnName)
      Get the data for a single column
      java.io.Serializable getValue​(QName qname)
      Get a node property value by name
      java.util.Map<java.lang.String,​java.io.Serializable> getValues()
      Get the values of all available node properties.
    • Method Detail

      • getValues

        java.util.Map<java.lang.String,​java.io.Serializable> getValues()
        Get the values of all available node properties. These are only properties that were stored in the query results and can vary depending on the query language that was used.
        Returns:
        Returns all the available node properties
      • getValue

        java.io.Serializable getValue​(java.lang.String columnName)
        Get the data for a single column
        Parameters:
        columnName - String
        Returns:
        the value
      • getValue

        java.io.Serializable getValue​(QName qname)
        Get a node property value by name
        Parameters:
        qname - the property name
        Returns:
        Returns the node property for the given name
      • getNodeRef

        NodeRef getNodeRef()
        The reference to the node that equates to this row in the result set
        Returns:
        Returns the reference to the node that makes this result
      • getNodeRefs

        java.util.Map<java.lang.String,​NodeRef> getNodeRefs()
        Gets the node refs
        Returns:
        a map of selector name to node ref
      • getNodeRef

        NodeRef getNodeRef​(java.lang.String selectorName)
        Gets the node ref related to the named selector
        Parameters:
        selectorName - String
        Returns:
        the node ref
      • getScore

        float getScore()
        Get the score for this row in the result set
        Returns:
        Returns the score for this row in the resultset
      • getScores

        java.util.Map<java.lang.String,​java.lang.Float> getScores()
        Get the scores .
        Returns:
        a map of selector name to score.
      • getScore

        float getScore​(java.lang.String selectorName)
        Get the score related to the named selector.
        Parameters:
        selectorName - String
        Returns:
        - the score.
      • getResultSet

        ResultSet getResultSet()
        Get the containing result set
        Returns:
        Returns the containing resultset
      • getQName

        QName getQName()
        Returns:
        Returns the name of the child association leading down to the node represented by this row
      • getIndex

        int getIndex()
        Get the index of this result set in the result set If you want the overall position in paged reults you have to add the skipCount fo the result set.
        Returns:
        int
      • getChildAssocRef

        ChildAssociationRef getChildAssocRef()
        Returns:
        Returns the child assoc ref for this row