public abstract static class InfluxDbIO.Write extends PTransform<PCollection<java.lang.String>,PDone>
PTransform
to write to a InfluxDB datasource.name
Constructor and Description |
---|
Write() |
Modifier and Type | Method and Description |
---|---|
PDone |
expand(PCollection<java.lang.String> input)
Override this method to specify how this
PTransform should be expanded on the given
InputT . |
void |
populateDisplayData(DisplayData.Builder builder)
Register display data for the given transform or component.
|
InfluxDbIO.Write |
withBatchSize(int batchSize)
Number of elements to batch.
|
InfluxDbIO.Write |
withConsistencyLevel(InfluxDB.ConsistencyLevel consistencyLevel)
Sets the consistency level to use.
|
InfluxDbIO.Write |
withDatabase(java.lang.String database)
Writes to the specified database.
|
InfluxDbIO.Write |
withDataSourceConfiguration(InfluxDbIO.DataSourceConfiguration configuration)
Writes to the InfluxDB instance indicated by the given configuration.
|
InfluxDbIO.Write |
withDisableCertificateValidation(boolean disableCertificateValidation)
Disable SSL certification validation.
|
InfluxDbIO.Write |
withRetentionPolicy(java.lang.String rp)
Sets the retention policy to use.
|
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, toString, validate
public PDone expand(PCollection<java.lang.String> input)
PTransform
PTransform
should be expanded on the given
InputT
.
NOTE: This method should not be called directly. Instead apply the PTransform
should
be applied to the InputT
using the apply
method.
Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
expand
in class PTransform<PCollection<java.lang.String>,PDone>
public void populateDisplayData(DisplayData.Builder builder)
PTransform
populateDisplayData(DisplayData.Builder)
is invoked by Pipeline runners to collect
display data via DisplayData.from(HasDisplayData)
. Implementations may call super.populateDisplayData(builder)
in order to register display data in the current namespace,
but should otherwise use subcomponent.populateDisplayData(builder)
to use the namespace
of the subcomponent.
By default, does not register any display data. Implementors may override this method to provide their own display data.
populateDisplayData
in interface HasDisplayData
populateDisplayData
in class PTransform<PCollection<java.lang.String>,PDone>
builder
- The builder to populate with display data.HasDisplayData
public InfluxDbIO.Write withBatchSize(int batchSize)
public InfluxDbIO.Write withDisableCertificateValidation(boolean disableCertificateValidation)
public InfluxDbIO.Write withRetentionPolicy(java.lang.String rp)
public InfluxDbIO.Write withConsistencyLevel(InfluxDB.ConsistencyLevel consistencyLevel)
public InfluxDbIO.Write withDataSourceConfiguration(InfluxDbIO.DataSourceConfiguration configuration)
public InfluxDbIO.Write withDatabase(java.lang.String database)