Created
February 20, 2015 19:13
-
-
Save pvarsh/0d2342157e5692288aa2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import parsekit | |
class FilterRow(parsekit.Step): | |
start_row = parsekit.Argument( | |
"The row to start emitting from.", | |
required=True, | |
type=int) | |
def configure(self, options): | |
self.row_counter = 0 | |
def run(self, record, metadata): | |
self.row_counter += 1 | |
if self.row_counter >= self.options.start_row: | |
return record, metadata |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment