SMILA (incubation) API documentation

org.eclipse.smila.search.api.helper
Class ResultRecordAccessor

java.lang.Object
  extended by org.eclipse.smila.search.api.helper.ResultRecordAccessor

Deprecated. use ResultItemAccessor

public class ResultRecordAccessor
extends java.lang.Object

wrappper for result records.

Author:
scum36

Constructor Summary
ResultRecordAccessor(int position, AnyMap metadata)
          Deprecated. create instance.
 
Method Summary
 AnyMap getHighlight()
          Deprecated.  
 AnyMap getMetadata()
          Deprecated.  
 int getPosition()
          Deprecated.  
 java.lang.String getRecordId()
          Deprecated.  
 java.lang.String getSource()
          Deprecated.  
 double getWeight()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultRecordAccessor

public ResultRecordAccessor(int position,
                            AnyMap metadata)
Deprecated. 
create instance.

Parameters:
position - position in result record list
metadata - record metadata of result
Method Detail

getPosition

public int getPosition()
Deprecated. 
Returns:
position in result record list

getMetadata

public AnyMap getMetadata()
Deprecated. 
Returns:
record metadata of result

getRecordId

public java.lang.String getRecordId()
Deprecated. 
Returns:
value of "_recordid" attribute, if set. Else null.

getSource

public java.lang.String getSource()
Deprecated. 
Returns:
value of "_source" attribute, if set. Else null.

getWeight

public double getWeight()
Deprecated. 
Returns:
value of "_weight" attribute, if set. Else 0.0.

getHighlight

public AnyMap getHighlight()
Deprecated. 
Returns:
value of "_highlight" annotation, ifs set. Else null.

SMILA (incubation) API documentation