Package io.kestra.core.tasks.storages
Class Split
java.lang.Object
io.kestra.core.models.tasks.Task
io.kestra.core.tasks.storages.Split
- All Implemented Interfaces:
RunnableTask<Split.Output>,StorageSplitInterface
@Example(title="Split a file by size.",code={"from: \"kestra://long/url/file1.txt\"","bytes: 10MB"}) @Example(title="Split a file by rows count.",code={"from: \"kestra://long/url/file1.txt\"","rows: 1000"}) @Example(title="Split a file in a defined number of partitions.",code={"from: \"kestra://long/url/file1.txt\"","partitions: 8"})
public class Split
extends Task
implements RunnableTask<Split.Output>, StorageSplitInterface
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrun(RunContext runContext) Thsis method is called inside the Worker to run (execute) the task.Methods inherited from class io.kestra.core.models.tasks.Task
findById, findById, isFlowable, isSendToWorkerTaskMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.kestra.core.storages.StorageSplitInterface
getBytes, getPartitions, getRows, getSeparator
-
Constructor Details
-
Split
public Split()
-
-
Method Details
-
run
Description copied from interface:RunnableTaskThsis method is called inside the Worker to run (execute) the task.- Specified by:
runin interfaceRunnableTask<Split.Output>- Throws:
Exception
-