public class JSONMappingParameters extends Object implements Serializable, Cloneable
Provides additional mapping information when JSON is the record format on the streaming source.
Constructor and Description |
---|
JSONMappingParameters() |
Modifier and Type | Method and Description |
---|---|
JSONMappingParameters |
clone() |
boolean |
equals(Object obj) |
String |
getRecordRowPath()
Path to the top-level parent that contains the records.
|
int |
hashCode() |
void |
setRecordRowPath(String recordRowPath)
Path to the top-level parent that contains the records.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
JSONMappingParameters |
withRecordRowPath(String recordRowPath)
Path to the top-level parent that contains the records.
|
public void setRecordRowPath(String recordRowPath)
Path to the top-level parent that contains the records.
For example, consider the following JSON record:
In the RecordRowPath
, "$"
refers to the root
and path "$.vehicle.Model"
refers to the specific
"Model"
key in the JSON.
recordRowPath
- Path to the top-level parent that contains the records.
For example, consider the following JSON record:
In the RecordRowPath
, "$"
refers to the
root and path "$.vehicle.Model"
refers to the
specific "Model"
key in the JSON.
public String getRecordRowPath()
Path to the top-level parent that contains the records.
For example, consider the following JSON record:
In the RecordRowPath
, "$"
refers to the root
and path "$.vehicle.Model"
refers to the specific
"Model"
key in the JSON.
For example, consider the following JSON record:
In the RecordRowPath
, "$"
refers to the
root and path "$.vehicle.Model"
refers to the
specific "Model"
key in the JSON.
public JSONMappingParameters withRecordRowPath(String recordRowPath)
Path to the top-level parent that contains the records.
For example, consider the following JSON record:
In the RecordRowPath
, "$"
refers to the root
and path "$.vehicle.Model"
refers to the specific
"Model"
key in the JSON.
recordRowPath
- Path to the top-level parent that contains the records.
For example, consider the following JSON record:
In the RecordRowPath
, "$"
refers to the
root and path "$.vehicle.Model"
refers to the
specific "Model"
key in the JSON.
public String toString()
toString
in class Object
Object.toString()
public JSONMappingParameters clone()
Copyright © 2016. All rights reserved.