Java Code Examples for org.apache.beam.sdk.annotations.Experimental.Kind#SOURCE_SINK
The following examples show how to use
org.apache.beam.sdk.annotations.Experimental.Kind#SOURCE_SINK .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AvroIO.java From beam with Apache License 2.0 | 5 votes |
/** * A {@link Sink} for use with {@link FileIO#write} and {@link FileIO#writeDynamic}, writing * elements with a given (common) schema, like {@link #writeGenericRecords(String)}. */ @Experimental(Kind.SOURCE_SINK) public static <ElementT extends IndexedRecord> Sink<ElementT> sink(String jsonSchema) { return new AutoValue_AvroIO_Sink.Builder<ElementT>() .setJsonSchema(jsonSchema) .setMetadata(ImmutableMap.of()) .setCodec(TypedWrite.DEFAULT_SERIALIZABLE_CODEC) .build(); }
Example 2
Source File: BigQueryIO.java From beam with Apache License 2.0 | 5 votes |
/** * @deprecated Use {@link #withSelectedFields(List)} and {@link #withRowRestriction(String)} * instead. */ @Deprecated @Experimental(Kind.SOURCE_SINK) public TypedRead<T> withReadOptions(TableReadOptions readOptions) { ensureReadOptionsFieldsNotSet(); return toBuilder().setReadOptions(readOptions).build(); }
Example 3
Source File: AvroIO.java From beam with Apache License 2.0 | 4 votes |
/** * A {@link Sink} for use with {@link FileIO#write} and {@link FileIO#writeDynamic}, writing * elements with a given (common) schema, like {@link #writeGenericRecords(Schema)}. */ @Experimental(Kind.SOURCE_SINK) public static <ElementT extends IndexedRecord> Sink<ElementT> sink(Schema schema) { return sink(schema.toString()); }
Example 4
Source File: BigQueryIO.java From beam with Apache License 2.0 | 4 votes |
/** @deprecated Use {@link #getSelectedFields()} and {@link #getRowRestriction()} instead. */ @Deprecated @Experimental(Kind.SOURCE_SINK) @Nullable abstract TableReadOptions getReadOptions();
Example 5
Source File: BigQueryServices.java From beam with Apache License 2.0 | 4 votes |
/** Returns a real, mock, or fake {@link StorageClient}. */ @Experimental(Kind.SOURCE_SINK) StorageClient getStorageClient(BigQueryOptions bqOptions) throws IOException;
Example 6
Source File: BigQueryIO.java From beam with Apache License 2.0 | 2 votes |
/** * @deprecated Use {@link #setSelectedFields(ValueProvider)} and {@link * #setRowRestriction(ValueProvider)} instead. */ @Deprecated @Experimental(Kind.SOURCE_SINK) abstract Builder<T> setReadOptions(TableReadOptions readOptions);