Package org.apache.jackrabbit.spi2dav
Class QueryResultRowImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi2dav.QueryResultRowImpl
-
- All Implemented Interfaces:
QueryResultRow
public class QueryResultRowImpl extends Object implements QueryResultRow
QueryResultRowImpl
implements a QueryResultRow that is initialized from a multistatus response.
-
-
Constructor Summary
Constructors Constructor Description QueryResultRowImpl(MultiStatusResponse response, String[] columnNames, NamePathResolver resolver, QValueFactory qValueFactory, ValueFactory valueFactory, IdFactory idFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeId
getNodeId(String selectorName)
ReturnsNodeId
of node for a givenselectorname
this result row represents.double
getScore(String selectorName)
Returns score for the givenselectorName
of this result row.QValue[]
getValues()
Returns an array ofQValue
s.
-
-
-
Constructor Detail
-
QueryResultRowImpl
public QueryResultRowImpl(MultiStatusResponse response, String[] columnNames, NamePathResolver resolver, QValueFactory qValueFactory, ValueFactory valueFactory, IdFactory idFactory) throws RepositoryException
- Throws:
RepositoryException
-
-
Method Detail
-
getNodeId
public NodeId getNodeId(String selectorName)
Description copied from interface:QueryResultRow
ReturnsNodeId
of node for a givenselectorname
this result row represents.- Specified by:
getNodeId
in interfaceQueryResultRow
- Parameters:
selectorName
- the name of a selector ornull
for the default selector.- Returns:
- node id of the
Node
this result row represents ornull
if there is no node present in this row for the given selector name. - See Also:
Row.getNode()
,Row.getNode(String)
-
getScore
public double getScore(String selectorName)
Description copied from interface:QueryResultRow
Returns score for the givenselectorName
of this result row.- Specified by:
getScore
in interfaceQueryResultRow
- Parameters:
selectorName
- the name of a selector ornull
for the default selector.- Returns:
- score for the given selector in this result row.
-
getValues
public QValue[] getValues()
Description copied from interface:QueryResultRow
Returns an array ofQValue
s.- Specified by:
getValues
in interfaceQueryResultRow
- Returns:
- an array of
QValue
s representing the values present in this result row. - See Also:
Row.getValue(String)
,Row.getValues()
-
-