@PublicAPIClass(maturity=STABLE) public class WriteStatus extends Object implements Serializable
| Constructor and Description |
|---|
WriteStatus() |
WriteStatus(Boolean trackSuccessRecords,
Double failureFraction) |
| Modifier and Type | Method and Description |
|---|---|
HashMap<HoodieKey,Throwable> |
getErrors() |
List<Pair<HoodieRecordDelegate,Throwable>> |
getFailedRecords() |
String |
getFileId() |
Throwable |
getGlobalError() |
String |
getPartitionPath() |
HoodieWriteStat |
getStat() |
long |
getTotalErrorRecords() |
long |
getTotalRecords() |
List<HoodieRecordDelegate> |
getWrittenRecordDelegates() |
boolean |
hasErrors() |
boolean |
hasGlobalError() |
boolean |
isErrored(HoodieKey key) |
boolean |
isTrackingSuccessfulWrites() |
void |
markFailure(HoodieRecord record,
Throwable t,
Option<Map<String,String>> optionalRecordMetadata)
Mark write as failed, optionally using given parameters for the purpose of calculating some aggregate metrics.
|
void |
markFailure(String recordKey,
String partitionPath,
Throwable t)
Used by native write handles like HoodieRowCreateHandle and HoodieRowDataCreateHandle.
|
void |
markSuccess(HoodieRecordDelegate recordDelegate,
Option<Map<String,String>> optionalRecordMetadata)
Used by native write handles like HoodieRowCreateHandle and HoodieRowDataCreateHandle.
|
void |
markSuccess(HoodieRecord record,
Option<Map<String,String>> optionalRecordMetadata)
Mark write as success, optionally using given parameters for the purpose of calculating some aggregate metrics.
|
void |
setFileId(String fileId) |
void |
setGlobalError(Throwable t) |
void |
setPartitionPath(String partitionPath) |
void |
setStat(HoodieWriteStat stat) |
void |
setTotalErrorRecords(long totalErrorRecords) |
void |
setTotalRecords(long totalRecords) |
String |
toString() |
public void markSuccess(HoodieRecord record, Option<Map<String,String>> optionalRecordMetadata)
record - deflated HoodieRecord containing information that uniquely identifies it.optionalRecordMetadata - optional metadata related to data contained in HoodieRecord before deflation.@PublicAPIMethod(maturity=EVOLVING) public void markSuccess(HoodieRecordDelegate recordDelegate, Option<Map<String,String>> optionalRecordMetadata)
markSuccess(HoodieRecord, Option)public void markFailure(HoodieRecord record, Throwable t, Option<Map<String,String>> optionalRecordMetadata)
record - deflated HoodieRecord containing information that uniquely identifies it.optionalRecordMetadata - optional metadata related to data contained in HoodieRecord before deflation.@PublicAPIMethod(maturity=EVOLVING) public void markFailure(String recordKey, String partitionPath, Throwable t)
public String getFileId()
public void setFileId(String fileId)
public boolean hasErrors()
public boolean isErrored(HoodieKey key)
public boolean hasGlobalError()
public Throwable getGlobalError()
public void setGlobalError(Throwable t)
public List<HoodieRecordDelegate> getWrittenRecordDelegates()
public List<Pair<HoodieRecordDelegate,Throwable>> getFailedRecords()
public HoodieWriteStat getStat()
public void setStat(HoodieWriteStat stat)
public String getPartitionPath()
public void setPartitionPath(String partitionPath)
public long getTotalRecords()
public void setTotalRecords(long totalRecords)
public long getTotalErrorRecords()
public void setTotalErrorRecords(long totalErrorRecords)
public boolean isTrackingSuccessfulWrites()
Copyright © 2023 The Apache Software Foundation. All rights reserved.