Class IndexRowImpl

  • All Implemented Interfaces:
    IndexRow

    public class IndexRowImpl
    extends Object
    implements IndexRow
    A simple index row implementation.
    • Constructor Detail

      • IndexRowImpl

        public IndexRowImpl​(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 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​(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