public class JSONRecordAdapter
extends java.lang.Object
| Constructor and Description |
|---|
JSONRecordAdapter() |
| Modifier and Type | Method and Description |
|---|---|
static java.nio.ByteBuffer |
getData(org.json.JSONObject jsonObject) |
static java.lang.String |
getPartitionKey(org.json.JSONObject jsonObject) |
static java.lang.String |
getStreamName(org.json.JSONObject jsonObject) |
org.json.JSONObject |
translateFromRecord(PutRecordRequest source) |
public static java.nio.ByteBuffer getData(org.json.JSONObject jsonObject)
throws org.json.JSONException
org.json.JSONExceptionpublic static java.lang.String getPartitionKey(org.json.JSONObject jsonObject)
throws org.json.JSONException
org.json.JSONExceptionpublic static java.lang.String getStreamName(org.json.JSONObject jsonObject)
throws org.json.JSONException
org.json.JSONExceptionpublic org.json.JSONObject translateFromRecord(PutRecordRequest source)
source - the PutRecordRequest to that will be stored