public class ImportJson
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
| Constructor and Description |
|---|
ImportJson() |
ImportJson(org.apache.hadoop.fs.Path tablePath,
org.apache.hadoop.fs.Path jsonFilePath,
org.ojai.FieldPath idField,
org.ojai.json.Events.Delegate eventDelegate) |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Main entry point.
|
int |
run(java.lang.String[] args) |
int |
run0() |
public ImportJson()
public ImportJson(org.apache.hadoop.fs.Path tablePath,
org.apache.hadoop.fs.Path jsonFilePath,
org.ojai.FieldPath idField,
org.ojai.json.Events.Delegate eventDelegate)
public int run(java.lang.String[] args)
throws java.lang.Exception
run in interface org.apache.hadoop.util.Tooljava.lang.Exceptionpublic int run0()
throws java.lang.Exception
java.lang.Exceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
args - the command line parametersjava.lang.Exception - when running the job fails