|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.org.ogsadai.client.toolkit.activity.RequestComponent
uk.org.ogsadai.client.toolkit.activity.Activity
uk.org.ogsadai.client.toolkit.activity.transform.BlockAggregator
This activity aggregates sequences of blocks together to form larger blocks. It can be chained between two activities such as an sql query and an output stream in order to condense a large number of small blocks generated by a certain SQL query into a smaller number of larger blocks for more optimial delivery from the output stream.
This activity has one input - the data to be aggregated - and one output - the aggregated data.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private int |
mBlockSize
The number of blocks to aggregate into each larger block. |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
Constructor Summary | |
BlockAggregator(ActivityOutput input)
Constructs an activity to perform an aggregation of the blocks generated by the output of another activity. |
|
BlockAggregator(ActivityOutput input,
int blockSize)
Constructs an activity to perform an aggregation of the blocks generated by the output of another activity. |
Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
ActivityOutput |
getOutput()
Gets the activity's only output - the aggregated data. |
void |
setBlockSize(int blockSize)
Sets the number of blocks to aggregate together into each larger block. |
void |
setInput(ActivityOutput input)
Sets the input of this activity to be the output from another activity that will provide the data to be aggregated. |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getDataService, getName, getSession, setDataService, setSession |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private int mBlockSize
Constructor Detail |
public BlockAggregator(ActivityOutput input)
setInput
should be called to set the activity that
provides input to this activity.
input
- Output from another activity that will provide input to
this activity.
java.lang.IllegalArgumentException
- If input
is null
.public BlockAggregator(ActivityOutput input, int blockSize)
input
- Output from another activity that will provide input to
this activity.blockSize
- Number of blocks to aggregate together to form a larger
block.
java.lang.IllegalArgumentException
- If input
is null
or
blockSize
< 1.Method Detail |
public ActivityOutput getOutput()
public final void setInput(ActivityOutput input)
input
- Output from another activity.
java.lang.IllegalArgumentException
- If input
is null
.public final void setBlockSize(int blockSize)
blockSize
- Number of blocks to aggregate together to form a larger
block.
java.lang.IllegalArgumentException
- If blockSize
< 1.protected java.lang.String generateXML()
RequestComponent
generateXML
in class Activity
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |