This documentation describes a release under development. Documentation for the latest release, 3.6.2, can be found here.
mitto.iov2.input.ExampleInput¶
ExampleInput¶
Source of example data.
When used without any additional parameters,
Return 10,000 rows of data
Return 10,000 rows of data as
Return 2 rows of data, as provided:
Return 1 row of data, as provided, as
TODO: I believe this section is a duplicate of the ExampleInput page and should be deleted here. Python code can also be used to generate example data
via
Example code meeting the above requirements: def inputter(self):
cols = "abcdefghijk"
for i in range(0, 10):
yield {col: i for col in cols}
self.inputter = inputter
Example: using Python from a file in input: {
use: mitto.iov2.input#ExampleInput
python_code: example_data.py
}
Example: using Python embedded in the input section of the job config: input: {
use: mitto.iov2.input#ExampleInput
python_code: [
def inputter(self):
. cols = "abcdefghijk"
. for i in range(0, 10):
. yield {col: i for col in cols}
self.inputter = inputter
]
}
|
||||||||||||||||||
type |
object |
|||||||||||||||||
properties |
||||||||||||||||||
|
Limit |
|||||||||||||||||
|
||||||||||||||||||
type |
integer |
|||||||||||||||||
default |
10000 |
|||||||||||||||||
|
Offset |
|||||||||||||||||
|
||||||||||||||||||
type |
integer |
|||||||||||||||||
default |
0 |
|||||||||||||||||
|
Use Record |
|||||||||||||||||
|
||||||||||||||||||
type |
boolean |
|||||||||||||||||
default |
False |
|||||||||||||||||
|
Data |
|||||||||||||||||
|
||||||||||||||||||
type |
array |
|||||||||||||||||
default |
||||||||||||||||||
items |
type |
object |
||||||||||||||||
|
Python Code |
|||||||||||||||||
|
||||||||||||||||||
anyOf |
type |
string |
||||||||||||||||
type |
array |
|||||||||||||||||
items |
type |
string |
||||||||||||||||
additionalProperties |
False |
|||||||||||||||||