public class OdpsShipperConfig extends Object implements ShipperConfig
| Constructor and Description |
|---|
OdpsShipperConfig() |
OdpsShipperConfig(String odpsEndPoint,
String odpsProject,
String odpsTable,
List<String> logFieldsList,
List<String> partitionColumn,
String partitionTimeFormat)
Create a odps shipper config
|
| Modifier and Type | Method and Description |
|---|---|
void |
FromJsonObj(com.alibaba.fastjson.JSONObject obj) |
int |
getBufferInterval() |
com.alibaba.fastjson.JSONObject |
GetJsonObj() |
List<String> |
GetLogFieldsList() |
String |
GetOdpsEndPoint() |
String |
GetOdpsProject() |
String |
GetOdpsTable() |
List<String> |
GetPartitionColumn() |
String |
GetPartitionTimeFromat() |
String |
GetShipperType() |
void |
setBufferInterval(int bufferInterval) |
void |
setLogFieldsList(List<String> logFieldsList) |
void |
setOdpsEndPoint(String odpsEndPoint) |
void |
setOdpsProject(String odpsProject) |
void |
setOdpsTable(String odpsTable) |
void |
setPartitionColumn(List<String> partitionColumn) |
void |
setPartitionTimeFormat(String partitionTimeFormat) |
public OdpsShipperConfig(String odpsEndPoint, String odpsProject, String odpsTable, List<String> logFieldsList, List<String> partitionColumn, String partitionTimeFormat)
odpsEndPoint - odps endpointodpsProject - odps project nameodpsTable - odps table namelogFieldsList - the log key lists, used to mapping to the odps table columnpartitionColumn - the log key lists, used to mapping to odps partition columnpartitionTimeFormat - the odps partition time format , e.g "yyyy_MM_dd_HH"public OdpsShipperConfig()
public String GetOdpsEndPoint()
public String GetOdpsProject()
public String GetOdpsTable()
public String GetPartitionTimeFromat()
public int getBufferInterval()
public String GetShipperType()
GetShipperType in interface ShipperConfigpublic void setOdpsEndPoint(String odpsEndPoint)
public void setOdpsProject(String odpsProject)
public void setOdpsTable(String odpsTable)
public void setPartitionTimeFormat(String partitionTimeFormat)
public void setBufferInterval(int bufferInterval)
public com.alibaba.fastjson.JSONObject GetJsonObj()
GetJsonObj in interface ShipperConfigpublic void FromJsonObj(com.alibaba.fastjson.JSONObject obj)
throws LogException
FromJsonObj in interface ShipperConfigLogExceptionCopyright © 2025. All Rights Reserved.