Class FhirIO.Write
java.lang.Object
org.apache.beam.sdk.transforms.PTransform<PCollection<String>,FhirIO.Write.AbstractResult>
org.apache.beam.sdk.io.gcp.healthcare.FhirIO.Write
- All Implemented Interfaces:
Serializable
,HasDisplayData
- Direct Known Subclasses:
FhirIO.Import
- Enclosing class:
FhirIO
public abstract static class FhirIO.Write
extends PTransform<PCollection<String>,FhirIO.Write.AbstractResult>
The type Write.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
The type Result.static enum
The enum Write method. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TupleTag
<HealthcareIOError<String>> The tag for the failed writes to FHIR store.static final TupleTag
<HealthcareIOError<String>> The tag for the files that failed to FHIR store.The tag for successful writes to FHIR store.static final TupleTag
<ResourceId> The tag for temp files for import to FHIR store.Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FhirIO.Write
executeBundles
(String fhirStore) static FhirIO.Write
executeBundles
(ValueProvider<String> fhirStore) expand
(PCollection<String> input) Override this method to specify how thisPTransform
should be expanded on the givenInputT
.static FhirIO.Write
fhirStoresImport
(String fhirStore, String gcsTempPath, String gcsDeadLetterPath, @Nullable FhirIO.Import.ContentStructure contentStructure) Import method for batch writing resources.static FhirIO.Write
fhirStoresImport
(String fhirStore, String gcsDeadLetterPath, @Nullable FhirIO.Import.ContentStructure contentStructure) static FhirIO.Write
fhirStoresImport
(ValueProvider<String> fhirStore, ValueProvider<String> gcsTempPath, ValueProvider<String> gcsDeadLetterPath, @Nullable FhirIO.Import.ContentStructure contentStructure) Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
-
Field Details
-
SUCCESSFUL_BODY
The tag for successful writes to FHIR store. -
FAILED_BODY
The tag for the failed writes to FHIR store. -
FAILED_FILES
The tag for the files that failed to FHIR store. -
TEMP_FILES
The tag for temp files for import to FHIR store.
-
-
Constructor Details
-
Write
public Write()
-
-
Method Details
-
fhirStoresImport
public static FhirIO.Write fhirStoresImport(String fhirStore, String gcsTempPath, String gcsDeadLetterPath, @Nullable FhirIO.Import.ContentStructure contentStructure) - Parameters:
fhirStore
- the FHIR storegcsTempPath
- the gcs temp pathgcsDeadLetterPath
- the gcs dead letter pathcontentStructure
- the content structure- Returns:
- the write
-
fhirStoresImport
public static FhirIO.Write fhirStoresImport(String fhirStore, String gcsDeadLetterPath, @Nullable FhirIO.Import.ContentStructure contentStructure) -
fhirStoresImport
public static FhirIO.Write fhirStoresImport(ValueProvider<String> fhirStore, ValueProvider<String> gcsTempPath, ValueProvider<String> gcsDeadLetterPath, @Nullable FhirIO.Import.ContentStructure contentStructure) -
executeBundles
- Parameters:
fhirStore
- the fhir store- Returns:
- the write
-
executeBundles
- Parameters:
fhirStore
- the fhir store- Returns:
- the write
-
expand
Description copied from class:PTransform
Override this method to specify how thisPTransform
should be expanded on the givenInputT
.NOTE: This method should not be called directly. Instead apply the
PTransform
should be applied to theInputT
using theapply
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).
- Specified by:
expand
in classPTransform<PCollection<String>,
FhirIO.Write.AbstractResult>
-