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