Interface Write
- All Known Subinterfaces:
- DeltaWrite,- RequiresDistributionAndOrdering,- V1Write
@Evolving
public interface Write
A logical representation of a data source write.
 
 This logical representation is shared between batch and streaming write. Data sources must
 implement the corresponding methods in this interface to match what the table promises
 to support. For example, toBatch() must be implemented if the Table that
 creates this Write returns TableCapability.BATCH_WRITE support in its
 Table.capabilities().
- Since:
- 3.2.0
- 
Method SummaryModifier and TypeMethodDescriptiondefault StringReturns the description associated with this write.default CustomMetric[]Returns an array of supported custom metrics with name and description.default BatchWritetoBatch()Returns aBatchWriteto write data to batch source.default StreamingWriteReturns aStreamingWriteto write data to streaming source.
- 
Method Details- 
descriptionReturns the description associated with this write.
- 
toBatchReturns aBatchWriteto write data to batch source. By default this method throws exception, data sources must overwrite this method to provide an implementation, if theTablethat creates this write returnsTableCapability.BATCH_WRITEsupport in itsTable.capabilities().
- 
toStreamingReturns aStreamingWriteto write data to streaming source. By default this method throws exception, data sources must overwrite this method to provide an implementation, if theTablethat creates this write returnsTableCapability.STREAMING_WRITEsupport in itsTable.capabilities().
- 
supportedCustomMetricsReturns an array of supported custom metrics with name and description. By default it returns empty array.
 
-