SMILA (incubation) API documentation

org.eclipse.smila.connectivity.framework
Interface DataReference

All Known Implementing Classes:
DataReferenceImpl

public interface DataReference

A proxy object interface to a record provided by a Crawler. The object contains the Id and the hash value of the record but no additional data. The complete record can be loaded via the CrawlerCallback.


Method Summary
 void dispose()
          Disposes the referenced record object.
 java.lang.String getHash()
          Returns the hash of the referenced record as a String.
 ConnectivityId getId()
          Returns the Id of the referenced record.
 Record getRecord()
          Returns the complete Record object via the CrawlerCallback.
 

Method Detail

getId

ConnectivityId getId()
Returns the Id of the referenced record.

Returns:
the Id of the referenced record

getHash

java.lang.String getHash()
Returns the hash of the referenced record as a String.

Returns:
the hash of the referenced record as a String

getRecord

Record getRecord()
                 throws CrawlerException,
                        CrawlerCriticalException
Returns the complete Record object via the CrawlerCallback.

Returns:
the complete record
Throws:
CrawlerException - if any non critical error occurs
CrawlerCriticalException - if any critical error occurs

dispose

void dispose()
Disposes the referenced record object.


SMILA (incubation) API documentation