Class StrListAppenderBlock
- java.lang.Object
-
- org.apache.ignite.internal.processors.bulkload.pipeline.PipelineBlock<String[],Object>
-
- org.apache.ignite.internal.processors.bulkload.pipeline.StrListAppenderBlock
-
public class StrListAppenderBlock extends PipelineBlock<String[],Object>
The PipelineBlock which appends its input to a user-supplied list.The list is set using
output(List)method.
-
-
Constructor Summary
Constructors Constructor Description StrListAppenderBlock()Creates the block.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String[] elements, boolean isLastPortion)Accepts a portion of input.voidoutput(List<List<Object>> output)Sets the output list.-
Methods inherited from class org.apache.ignite.internal.processors.bulkload.pipeline.PipelineBlock
append
-
-
-
-
Constructor Detail
-
StrListAppenderBlock
public StrListAppenderBlock()
Creates the block. List can be configured usingoutput(List)method.
-
-
Method Detail
-
output
public void output(List<List<Object>> output)
Sets the output list.- Parameters:
output- The output list.
-
accept
public void accept(String[] elements, boolean isLastPortion)
Accepts a portion of input.isLastPortionparameter should be set if this is a last portion of the input. The method must not be called after the end of input: the call withisLastPortion == trueis the last one.- Specified by:
acceptin classPipelineBlock<String[],Object>- Parameters:
elements- Portion of input.isLastPortion- Is this the last portion.
-
-