Modifier and Type | Field and Description |
---|---|
static java.lang.Long |
MAX_RECORDS_PER_BULK_DEFAULT
default: write up to 1000 records to one output bulk.
|
static java.lang.String |
NAME
Name of the worker, used in worker description and workflows.
|
static java.lang.String |
OUTPUT_SLOT_CRAWLED_RECORDS
name of input slot containing the crawled records.
|
static java.lang.String |
TASK_PARAM_DELTA_PROPERTIES
feed entry properties used for delta hash.
|
static java.lang.String |
TASK_PARAM_FEED_URL
Name of the task parameter that contains the feed URL(s) (may be more than one).
|
static java.lang.String |
TASK_PARAM_MAX_RECORDS_PER_BULK
Maximum number of records in one bulk object.
|
Constructor and Description |
---|
FeedCrawlerWorker() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
void |
perform(TaskContext taskContext)
Performs a computation on the data available in the
TaskContext , such as a task for this worker, input and
(if configured) output slots. |
public static final java.lang.String NAME
public static final java.lang.String OUTPUT_SLOT_CRAWLED_RECORDS
public static final java.lang.String TASK_PARAM_FEED_URL
public static final java.lang.String TASK_PARAM_MAX_RECORDS_PER_BULK
public static final java.lang.String TASK_PARAM_DELTA_PROPERTIES
public static final java.lang.Long MAX_RECORDS_PER_BULK_DEFAULT
public java.lang.String getName()
public void perform(TaskContext taskContext) throws java.lang.Exception
Worker
TaskContext
, such as a task for this worker, input and
(if configured) output slots. An implementor must make sure, calls to this method must be thread-safe!