Package org.apache.beam.sdk.io.influxdb
Class InfluxDbIO.Write
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<java.lang.String>,org.apache.beam.sdk.values.PDone>
-
- org.apache.beam.sdk.io.influxdb.InfluxDbIO.Write
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.beam.sdk.transforms.display.HasDisplayData
- Enclosing class:
- InfluxDbIO
public abstract static class InfluxDbIO.Write extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<java.lang.String>,org.apache.beam.sdk.values.PDone>APTransformto write to a InfluxDB datasource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Write()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.beam.sdk.values.PDoneexpand(org.apache.beam.sdk.values.PCollection<java.lang.String> input)voidpopulateDisplayData(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder)InfluxDbIO.WritewithBatchSize(int batchSize)Number of elements to batch.InfluxDbIO.WritewithConsistencyLevel(org.influxdb.InfluxDB.ConsistencyLevel consistencyLevel)Sets the consistency level to use.InfluxDbIO.WritewithDatabase(java.lang.String database)Writes to the specified database.InfluxDbIO.WritewithDataSourceConfiguration(InfluxDbIO.DataSourceConfiguration configuration)Writes to the InfluxDB instance indicated by the given configuration.InfluxDbIO.WritewithDisableCertificateValidation(boolean disableCertificateValidation)Disable SSL certification validation.InfluxDbIO.WritewithRetentionPolicy(java.lang.String rp)Sets the retention policy to use.-
Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, setDisplayData, setResourceHints, toString, validate, validate
-
-
-
-
Method Detail
-
expand
public org.apache.beam.sdk.values.PDone expand(org.apache.beam.sdk.values.PCollection<java.lang.String> input)
- Specified by:
expandin classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<java.lang.String>,org.apache.beam.sdk.values.PDone>
-
populateDisplayData
public void populateDisplayData(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder)
- Specified by:
populateDisplayDatain interfaceorg.apache.beam.sdk.transforms.display.HasDisplayData- Overrides:
populateDisplayDatain classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<java.lang.String>,org.apache.beam.sdk.values.PDone>
-
withBatchSize
public InfluxDbIO.Write withBatchSize(int batchSize)
Number of elements to batch. *
-
withDisableCertificateValidation
public InfluxDbIO.Write withDisableCertificateValidation(boolean disableCertificateValidation)
Disable SSL certification validation. *
-
withRetentionPolicy
public InfluxDbIO.Write withRetentionPolicy(java.lang.String rp)
Sets the retention policy to use. *
-
withConsistencyLevel
public InfluxDbIO.Write withConsistencyLevel(org.influxdb.InfluxDB.ConsistencyLevel consistencyLevel)
Sets the consistency level to use. ALL("all") Write succeeds only if write reached all cluster members. ANY("any") Write succeeds if write reached at least one cluster members. ONE("one") Write succeeds if write reached at least one cluster members. QUORUM("quorum") Write succeeds only if write reached a quorum of cluster members.
-
withDataSourceConfiguration
public InfluxDbIO.Write withDataSourceConfiguration(InfluxDbIO.DataSourceConfiguration configuration)
Writes to the InfluxDB instance indicated by the given configuration.
-
withDatabase
public InfluxDbIO.Write withDatabase(java.lang.String database)
Writes to the specified database.
-
-