|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CrawlerCallback
A callback interface to access metadata and attachments of crawled data.
| Method Summary | |
|---|---|
void |
dispose(ConnectivityId id)
Disposes the record with the given Id. |
byte[] |
getAttachment(ConnectivityId id,
java.lang.String name)
Returns the attachment for the given Id and name pair. |
java.lang.String[] |
getAttachmentNames(ConnectivityId id)
Returns an array of String[] containing the names of the available attachments for the given id. |
AnyMap |
getMetadata(ConnectivityId id)
Returns the metadata for the given id. |
| Method Detail |
|---|
AnyMap getMetadata(ConnectivityId id)
throws CrawlerException,
CrawlerCriticalException
id - the record id
CrawlerException - if any non critical error occurs
CrawlerCriticalException - if any critical error occurs
java.lang.String[] getAttachmentNames(ConnectivityId id)
throws CrawlerException,
CrawlerCriticalException
id - the record id
CrawlerException - if any non critical error occurs
CrawlerCriticalException - if any critical error occurs
byte[] getAttachment(ConnectivityId id,
java.lang.String name)
throws CrawlerException,
CrawlerCriticalException
id - the record idname - the name of the attachment
CrawlerException - if any non critical error occurs
CrawlerCriticalException - if any critical error occursvoid dispose(ConnectivityId id)
id - the record id
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||