Interface Context
public interface Context
Encapsulates context associated with the exporter on open.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA filter to limit the records which are exported. -
Method Summary
Modifier and TypeMethodDescriptionorg.slf4j.LoggerintGets the partition id of the exporter context.voidsetFilter(Context.RecordFilter filter) Apply the given filter to limit the records which are exported.
-
Method Details
-
getLogger
org.slf4j.Logger getLogger()- Returns:
- pre-configured logger for this exporter
-
getConfiguration
Configuration getConfiguration()- Returns:
- configuration for this exporter
-
getPartitionId
int getPartitionId()Gets the partition id of the exporter context. During the loading phase, while the configuration for each exporter is being validated, this method will return a null value since on instantiating the Exporter Context, we pass a null partition id, which will get replaced by a valid one at runtime.* @return the partition id for this exporter.
-
setFilter
Apply the given filter to limit the records which are exported.- Parameters:
filter- the filter to apply.
-