public class CopyToHFSRecord extends Record
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_DESTINATION |
static java.lang.String |
PROP_MODE |
static java.lang.String |
PROP_SOURCE |
Constructor and Description |
---|
CopyToHFSRecord()
Construct a record with a default ID
|
CopyToHFSRecord(java.lang.String id)
Construct a record with the supplied ID.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getDestination()
The USS file to copy the data set to.
|
DBBConstants.CopyMode |
getMode()
Return the copy mode.
|
java.lang.String |
getSource()
Returns the data set to copy from.
|
CopyToHFSRecord |
parse(com.ibm.json.java.JSONObject jsonObj)
Create the record from JSON.
|
void |
setDestination(java.io.File destination)
Set the USS file to copy the data set to.
|
void |
setMode(DBBConstants.CopyMode mode)
Set the copy mode.
|
void |
setSource(java.lang.String source)
Set the data set to copy from.
|
com.ibm.json.java.JSONObject |
toJSON()
Returns the record in JSON format.
|
public static final java.lang.String PROP_SOURCE
public static final java.lang.String PROP_DESTINATION
public static final java.lang.String PROP_MODE
public CopyToHFSRecord()
public CopyToHFSRecord(java.lang.String id)
id
- the id of the record.public java.lang.String getSource()
public void setSource(java.lang.String source)
source
- the data set to copy from.public java.io.File getDestination()
public void setDestination(java.io.File destination)
destination
- the USS file to copy the data set to.public DBBConstants.CopyMode getMode()
TEXT, BINARY,
LOAD
.public void setMode(DBBConstants.CopyMode mode)
TEXT, BINARY,
LOAD
.mode
- the copy modepublic com.ibm.json.java.JSONObject toJSON()
public CopyToHFSRecord parse(com.ibm.json.java.JSONObject jsonObj)
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.