Class IndexRowImpl

  • All Implemented Interfaces:
    IndexRow

    public class IndexRowImpl
    extends java.lang.Object
    implements IndexRow
    A simple index row implementation.
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexRowImpl​(java.lang.String path)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPath()
      The path of the node, if available.
      PropertyValue getValue​(java.lang.String columnName)
      The value of the given property, if available.
      boolean isVirtualRow()
      Marks if the row is virtual and behavior of getPath is undefined.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IndexRowImpl

        public IndexRowImpl​(java.lang.String path)
    • Method Detail

      • isVirtualRow

        public boolean isVirtualRow()
        Description copied from interface: IndexRow
        Marks if the row is virtual and behavior of getPath is undefined. The implementation may choose to return null or empty string. User of a virtual row should now rely of value of getPath returned from virtual rows.
        Specified by:
        isVirtualRow in interface IndexRow
        Returns:
        if path is available for the current row
      • getPath

        public java.lang.String getPath()
        Description copied from interface: IndexRow
        The path of the node, if available.
        Specified by:
        getPath in interface IndexRow
        Returns:
        the path
      • getValue

        public PropertyValue getValue​(java.lang.String columnName)
        Description copied from interface: IndexRow
        The value of the given property, if available. This might be a property of the given node, or a pseudo-property (a property that is only available in the index but not in the node itself, such as "jcr:score").
        Specified by:
        getValue in interface IndexRow
        Parameters:
        columnName - the column name
        Returns:
        the value, or null if not available