Package org.alfresco.repo.search
Class AbstractResultSetRow
- java.lang.Object
-
- org.alfresco.repo.search.AbstractResultSetRow
-
- All Implemented Interfaces:
org.alfresco.service.cmr.search.ResultSetRow
- Direct Known Subclasses:
ChildAssocRefResultSetRow,DBResultSetRow,DetachedResultSetRow,LuceneResultSetRow,SolrJSONResultSetRow,SortedResultSetRow
public abstract class AbstractResultSetRow extends Object implements org.alfresco.service.cmr.search.ResultSetRow
Common support for a row in a result set- Author:
- andyh
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Serializable>propertiesThe direct properties of the current node Used by those implementations that can cache the whole set.
-
Constructor Summary
Constructors Constructor Description AbstractResultSetRow(org.alfresco.service.cmr.search.ResultSet resultSet, int index)The row needs the result set and the index for lookup.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.alfresco.service.cmr.repository.ChildAssociationRefgetChildAssocRef()protected Map<org.alfresco.service.namespace.QName,Serializable>getDirectProperties()intgetIndex()org.alfresco.service.cmr.repository.NodeRefgetNodeRef()org.alfresco.service.namespace.QNamegetQName()org.alfresco.service.cmr.search.ResultSetgetResultSet()floatgetScore()SerializablegetValue(String columnName)SerializablegetValue(org.alfresco.service.namespace.QName qname)Map<String,Serializable>getValues()protected voidsetProperties(Map<org.alfresco.service.namespace.QName,Serializable> byQname)
-
-
-
Field Detail
-
properties
protected Map<String,Serializable> properties
The direct properties of the current node Used by those implementations that can cache the whole set.
-
-
Method Detail
-
getResultSet
public org.alfresco.service.cmr.search.ResultSet getResultSet()
- Specified by:
getResultSetin interfaceorg.alfresco.service.cmr.search.ResultSetRow
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceorg.alfresco.service.cmr.search.ResultSetRow
-
getNodeRef
public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
- Specified by:
getNodeRefin interfaceorg.alfresco.service.cmr.search.ResultSetRow
-
getQName
public org.alfresco.service.namespace.QName getQName()
- Specified by:
getQNamein interfaceorg.alfresco.service.cmr.search.ResultSetRow
-
getChildAssocRef
public org.alfresco.service.cmr.repository.ChildAssociationRef getChildAssocRef()
- Specified by:
getChildAssocRefin interfaceorg.alfresco.service.cmr.search.ResultSetRow
-
getScore
public float getScore()
- Specified by:
getScorein interfaceorg.alfresco.service.cmr.search.ResultSetRow
-
getValues
public Map<String,Serializable> getValues()
- Specified by:
getValuesin interfaceorg.alfresco.service.cmr.search.ResultSetRow
-
getValue
public Serializable getValue(String columnName)
- Specified by:
getValuein interfaceorg.alfresco.service.cmr.search.ResultSetRow
-
getDirectProperties
protected Map<org.alfresco.service.namespace.QName,Serializable> getDirectProperties()
-
setProperties
protected void setProperties(Map<org.alfresco.service.namespace.QName,Serializable> byQname)
-
getValue
public Serializable getValue(org.alfresco.service.namespace.QName qname)
- Specified by:
getValuein interfaceorg.alfresco.service.cmr.search.ResultSetRow
-
-