Package org.apache.jackrabbit.oak.api
Interface ResultRow
-
- All Known Implementing Classes:
ResultRowImpl
public interface ResultRow
A query result row.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getPath()
The path, assuming there is only one selector.String
getPath(String selectorName)
The path for the given selector name.Tree
getTree(String selectorName)
The tree for the given selector name.PropertyValue
getValue(String columnName)
The property value.PropertyValue[]
getValues()
Get the list of values.
-
-
-
Method Detail
-
getPath
String getPath()
The path, assuming there is only one selector.- Returns:
- the path
- Throws:
IllegalArgumentException
- if there are multiple selectors
-
getPath
String getPath(String selectorName)
The path for the given selector name.- Parameters:
selectorName
- the selector name (null if there is only one selector)- Returns:
- the path
- Throws:
IllegalArgumentException
- if the selector was not found, or if there are multiple selectors but the passed selectorName is null
-
getTree
Tree getTree(String selectorName)
The tree for the given selector name.- Parameters:
selectorName
- the selector name (null if there is only one selector)- Returns:
- the tree
- Throws:
IllegalArgumentException
- if the selector was not found, or if there are multiple selectors but the passed selectorName is null
-
getValue
PropertyValue getValue(String columnName)
The property value.- Parameters:
columnName
- the column name- Returns:
- the value
- Throws:
IllegalArgumentException
- if the column was not found
-
getValues
PropertyValue[] getValues()
Get the list of values.- Returns:
- the values
-
-