Search in sources :

Example 1 with FileBasedIOTestPipelineOptions

use of org.apache.beam.sdk.io.common.FileBasedIOTestPipelineOptions in project beam by apache.

the class AvroIOIT method setup.

@BeforeClass
public static void setup() {
    FileBasedIOTestPipelineOptions options = readFileBasedIOITPipelineOptions();
    filenamePrefix = appendTimestampSuffix(options.getFilenamePrefix());
    datasetSize = options.getDatasetSize();
    expectedHash = options.getExpectedHash();
    numberOfTextLines = options.getNumberOfRecords();
    settings = InfluxDBSettings.builder().withHost(options.getInfluxHost()).withDatabase(options.getInfluxDatabase()).withMeasurement(options.getInfluxMeasurement()).get();
}
Also used : FileBasedIOTestPipelineOptions(org.apache.beam.sdk.io.common.FileBasedIOTestPipelineOptions) BeforeClass(org.junit.BeforeClass)

Example 2 with FileBasedIOTestPipelineOptions

use of org.apache.beam.sdk.io.common.FileBasedIOTestPipelineOptions in project beam by apache.

the class TextIOIT method setup.

@BeforeClass
public static void setup() {
    FileBasedIOTestPipelineOptions options = readFileBasedIOITPipelineOptions();
    datasetSize = options.getDatasetSize();
    expectedHash = options.getExpectedHash();
    numberOfTextLines = options.getNumberOfRecords();
    compressionType = Compression.valueOf(options.getCompressionType());
    filenamePrefix = appendTimestampSuffix(options.getFilenamePrefix());
    numShards = options.getNumberOfShards();
    gatherGcsPerformanceMetrics = options.getReportGcsPerformanceMetrics();
    settings = InfluxDBSettings.builder().withHost(options.getInfluxHost()).withDatabase(options.getInfluxDatabase()).withMeasurement(options.getInfluxMeasurement()).get();
}
Also used : FileBasedIOTestPipelineOptions(org.apache.beam.sdk.io.common.FileBasedIOTestPipelineOptions) BeforeClass(org.junit.BeforeClass)

Example 3 with FileBasedIOTestPipelineOptions

use of org.apache.beam.sdk.io.common.FileBasedIOTestPipelineOptions in project beam by apache.

the class ParquetIOIT method setup.

@BeforeClass
public static void setup() {
    FileBasedIOTestPipelineOptions options = readFileBasedIOITPipelineOptions();
    numberOfTextLines = options.getNumberOfRecords();
    datasetSize = options.getDatasetSize();
    expectedHash = options.getExpectedHash();
    filenamePrefix = appendTimestampSuffix(options.getFilenamePrefix());
    settings = InfluxDBSettings.builder().withHost(options.getInfluxHost()).withDatabase(options.getInfluxDatabase()).withMeasurement(options.getInfluxMeasurement()).get();
}
Also used : FileBasedIOTestPipelineOptions(org.apache.beam.sdk.io.common.FileBasedIOTestPipelineOptions) BeforeClass(org.junit.BeforeClass)

Example 4 with FileBasedIOTestPipelineOptions

use of org.apache.beam.sdk.io.common.FileBasedIOTestPipelineOptions in project beam by apache.

the class TFRecordIOIT method setup.

@BeforeClass
public static void setup() {
    FileBasedIOTestPipelineOptions options = readFileBasedIOITPipelineOptions();
    datasetSize = options.getDatasetSize();
    expectedHash = options.getExpectedHash();
    numberOfTextLines = options.getNumberOfRecords();
    compressionType = Compression.valueOf(options.getCompressionType());
    filenamePrefix = appendTimestampSuffix(options.getFilenamePrefix());
    settings = InfluxDBSettings.builder().withHost(options.getInfluxHost()).withDatabase(options.getInfluxDatabase()).withMeasurement(options.getInfluxMeasurement()).get();
}
Also used : FileBasedIOTestPipelineOptions(org.apache.beam.sdk.io.common.FileBasedIOTestPipelineOptions) BeforeClass(org.junit.BeforeClass)

Aggregations

FileBasedIOTestPipelineOptions (org.apache.beam.sdk.io.common.FileBasedIOTestPipelineOptions)4 BeforeClass (org.junit.BeforeClass)4