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
QueryResultRowImplimplements 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 NodeIdgetNodeId(String selectorName)ReturnsNodeIdof node for a givenselectornamethis result row represents.doublegetScore(String selectorName)Returns score for the givenselectorNameof this result row.QValue[]getValues()Returns an array ofQValues.
-
-
-
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:QueryResultRowReturnsNodeIdof node for a givenselectornamethis result row represents.- Specified by:
getNodeIdin interfaceQueryResultRow- Parameters:
selectorName- the name of a selector ornullfor the default selector.- Returns:
- node id of the
Nodethis result row represents ornullif 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:QueryResultRowReturns score for the givenselectorNameof this result row.- Specified by:
getScorein interfaceQueryResultRow- Parameters:
selectorName- the name of a selector ornullfor the default selector.- Returns:
- score for the given selector in this result row.
-
getValues
public QValue[] getValues()
Description copied from interface:QueryResultRowReturns an array ofQValues.- Specified by:
getValuesin interfaceQueryResultRow- Returns:
- an array of
QValues representing the values present in this result row. - See Also:
Row.getValue(String),Row.getValues()
-
-