@DefaultSchema(value=AutoValueSchema.class) public abstract class FileReadSchemaTransformConfiguration extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FileReadSchemaTransformConfiguration.Builder |
Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.String> |
VALID_PROVIDERS |
Constructor and Description |
---|
FileReadSchemaTransformConfiguration() |
Modifier and Type | Method and Description |
---|---|
static FileReadSchemaTransformConfiguration.Builder |
builder() |
abstract java.lang.String |
getFilepattern()
The filepattern used to match and read files.
|
abstract java.lang.String |
getFormat()
The format of the file(s) to read.
|
abstract java.lang.Long |
getPollIntervalMillis()
The time, in milliseconds, to wait before polling for new files.
|
java.lang.String |
getSafeFilepattern() |
java.lang.String |
getSafeSchema() |
abstract java.lang.String |
getSchema()
The schema used by sources to deserialize data and create Beam Rows.
|
abstract java.lang.Long |
getTerminateAfterSecondsSinceNewOutput()
If no new files are found after this many seconds, this transform will cease to watch for new
files.
|
public FileReadSchemaTransformConfiguration()
public static FileReadSchemaTransformConfiguration.Builder builder()
@SchemaFieldDescription(value="The format of the file(s) to read. Possible values are \"lines\", \"avro\", \"parquet\", \"json\".") public abstract java.lang.String getFormat()
Possible values are: `"lines"`, `"avro"`, `"parquet"`, `"json"`
@SchemaFieldDescription(value="The filepattern used to match and read files. May instead use an input PCollection<Row> of filepatterns. To do so, each Row must have a \"filepattern\" String field containing the filepattern.") @Nullable public abstract java.lang.String getFilepattern()
May instead use an input PCollection
public java.lang.String getSafeFilepattern()
@SchemaFieldDescription(value="The schema used by sources to deserialize data and create Beam Rows. May provide either a String representation of the schema or a single path to a file that contains the schema.") @Nullable public abstract java.lang.String getSchema()
May provide either a String representation of the schema or a single path to a file that contains the schema.
public java.lang.String getSafeSchema()
@SchemaFieldDescription(value="The time, in milliseconds, to wait before polling for new files. This will set the pipeline to be a streaming pipeline that continuously watches for new files.Note: This only polls for new files. New updates to an existing file will not be watched for.") @Nullable public abstract java.lang.Long getPollIntervalMillis()
This will set the pipeline to be a streaming pipeline that continuously watches for new files.
Note: This only polls for new files. New updates to an existing file will not be watched for.
@SchemaFieldDescription(value="If no new files are found after this many seconds, this transform will cease to watch for new files. The default is to never terminate. To set this parameter, a poll interval must also be provided.") @Nullable public abstract java.lang.Long getTerminateAfterSecondsSinceNewOutput()
The default is to never terminate. To set this parameter, a poll interval must also be provided.