|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.connectivity.framework.util.DataReferenceFactory
public final class DataReferenceFactory
A factory to create DataReference objects in Crawlers.
| Method Summary | |
|---|---|
DataReference |
createDataReference(CrawlerCallback ccb,
Id id,
java.lang.String hash)
Creates a DataReference object with the given CrawlerCallback, Id and hash. |
DataReference |
createDataReference(CrawlerCallback ccb,
java.lang.String dataSourceId,
Attribute[] idAttributes,
Attribute[] hashAttributes)
Creates a DataReference object with the given CrawlerCallback, the dataSourceId, list of Id Attributes and list of Hash Attributes. |
DataReference |
createDataReference(CrawlerCallback ccb,
java.lang.String dataSourceId,
Attribute[] idAttributes,
Attribute[] hashAttributes,
java.util.Map<java.lang.String,?> hashAttachments)
Creates a DataReference object with the given CrawlerCallback, the dataSourceId, list of Id Attributes, list of Hash Attributes and list of Hash Attachments. |
DataReference |
createDataReference(CrawlerCallback ccb,
java.lang.String dataSourceId,
Attribute[] idAttributes,
java.util.Map<java.lang.String,?> hashAttachments)
Creates a DataReference object with the given CrawlerCallback, the dataSourceId, list of Id Attributes and list of Hash Attachments. |
static DataReferenceFactory |
getInstance()
Returns the singleton instance of the DataReferenceFactory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DataReferenceFactory getInstance()
public DataReference createDataReference(CrawlerCallback ccb,
java.lang.String dataSourceId,
Attribute[] idAttributes,
Attribute[] hashAttributes)
ccb - reference to the CrawlerCallbackdataSourceId - the dataSourceId. Must not be null or empty.idAttributes - an array of Attributes to create the Id fromhashAttributes - an array of Attributes to create the Hash from
public DataReference createDataReference(CrawlerCallback ccb,
java.lang.String dataSourceId,
Attribute[] idAttributes,
java.util.Map<java.lang.String,?> hashAttachments)
ccb - reference to the CrawlerCallbackdataSourceId - the dataSourceId. Must not be null or empty.idAttributes - an array of Attributes to create the Id fromhashAttachments - a Map of attachment names and attachment String values to create the hash from
public DataReference createDataReference(CrawlerCallback ccb,
java.lang.String dataSourceId,
Attribute[] idAttributes,
Attribute[] hashAttributes,
java.util.Map<java.lang.String,?> hashAttachments)
ccb - reference to the CrawlerCallbackdataSourceId - the dataSourceId. Must not be null or empty.idAttributes - an array of Attributes to create the Id fromhashAttributes - an array of Attributes to create the Hash fromhashAttachments - a Map of attachment names and attachment String values to create the hash from
public DataReference createDataReference(CrawlerCallback ccb,
Id id,
java.lang.String hash)
ccb - reference to the CrawlerCallbackid - the Idhash - the hash
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||