public class QueryResultRowImpl extends Object implements QueryResultRow
QueryResultRowImpl
implements a QueryResultRow that is
initialized from a multistatus response.Constructor and Description |
---|
QueryResultRowImpl(MultiStatusResponse response,
String[] columnNames,
NamePathResolver resolver,
QValueFactory qValueFactory,
ValueFactory valueFactory,
IdFactory idFactory) |
Modifier and Type | Method and Description |
---|---|
NodeId |
getNodeId(String selectorName)
Returns
NodeId of node for a given selectorname this
result row represents. |
double |
getScore(String selectorName)
Returns score for the given
selectorName of this result row. |
QValue[] |
getValues()
Returns an array of
QValue s. |
public QueryResultRowImpl(MultiStatusResponse response, String[] columnNames, NamePathResolver resolver, QValueFactory qValueFactory, ValueFactory valueFactory, IdFactory idFactory) throws RepositoryException
RepositoryException
public NodeId getNodeId(String selectorName)
QueryResultRow
NodeId
of node for a given selectorname
this
result row represents.getNodeId
in interface QueryResultRow
selectorName
- the name of a selector or null
for the
default selector.Node
this result row represents or
null
if there is no node present in this row for the
given selector name.Row.getNode()
,
Row.getNode(String)
public double getScore(String selectorName)
QueryResultRow
selectorName
of this result row.getScore
in interface QueryResultRow
selectorName
- the name of a selector or null
for the
default selector.public QValue[] getValues()
QueryResultRow
QValue
s.getValues
in interface QueryResultRow
QValue
s representing the values present
in this result row.Row.getValue(String)
,
Row.getValues()
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.