Class FhirIO.Write
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<java.lang.String>,FhirIO.Write.AbstractResult>
-
- org.apache.beam.sdk.io.gcp.healthcare.FhirIO.Write
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.beam.sdk.transforms.display.HasDisplayData
- Direct Known Subclasses:
FhirIO.Import
- Enclosing class:
- FhirIO
public abstract static class FhirIO.Write extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<java.lang.String>,FhirIO.Write.AbstractResult>
The type Write.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFhirIO.Write.AbstractResultstatic classFhirIO.Write.ResultThe type Result.static classFhirIO.Write.WriteMethodThe enum Write method.
-
Field Summary
Fields Modifier and Type Field Description static org.apache.beam.sdk.values.TupleTag<HealthcareIOError<java.lang.String>>FAILED_BODYThe tag for the failed writes to FHIR store.static org.apache.beam.sdk.values.TupleTag<HealthcareIOError<java.lang.String>>FAILED_FILESThe tag for the files that failed to FHIR store.static org.apache.beam.sdk.values.TupleTag<java.lang.String>SUCCESSFUL_BODYThe tag for successful writes to FHIR store.static org.apache.beam.sdk.values.TupleTag<org.apache.beam.sdk.io.fs.ResourceId>TEMP_FILESThe tag for temp files for import to FHIR store.
-
Constructor Summary
Constructors Constructor Description Write()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FhirIO.WriteexecuteBundles(java.lang.String fhirStore)static FhirIO.WriteexecuteBundles(org.apache.beam.sdk.options.ValueProvider<java.lang.String> fhirStore)FhirIO.Write.AbstractResultexpand(org.apache.beam.sdk.values.PCollection<java.lang.String> input)static FhirIO.WritefhirStoresImport(java.lang.String fhirStore, java.lang.String gcsDeadLetterPath, @Nullable FhirIO.Import.ContentStructure contentStructure)static FhirIO.WritefhirStoresImport(java.lang.String fhirStore, java.lang.String gcsTempPath, java.lang.String gcsDeadLetterPath, @Nullable FhirIO.Import.ContentStructure contentStructure)Import method for batch writing resources.static FhirIO.WritefhirStoresImport(org.apache.beam.sdk.options.ValueProvider<java.lang.String> fhirStore, org.apache.beam.sdk.options.ValueProvider<java.lang.String> gcsTempPath, org.apache.beam.sdk.options.ValueProvider<java.lang.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 Detail
-
SUCCESSFUL_BODY
public static final org.apache.beam.sdk.values.TupleTag<java.lang.String> SUCCESSFUL_BODY
The tag for successful writes to FHIR store.
-
FAILED_BODY
public static final org.apache.beam.sdk.values.TupleTag<HealthcareIOError<java.lang.String>> FAILED_BODY
The tag for the failed writes to FHIR store.
-
FAILED_FILES
public static final org.apache.beam.sdk.values.TupleTag<HealthcareIOError<java.lang.String>> FAILED_FILES
The tag for the files that failed to FHIR store.
-
TEMP_FILES
public static final org.apache.beam.sdk.values.TupleTag<org.apache.beam.sdk.io.fs.ResourceId> TEMP_FILES
The tag for temp files for import to FHIR store.
-
-
Method Detail
-
fhirStoresImport
public static FhirIO.Write fhirStoresImport(java.lang.String fhirStore, java.lang.String gcsTempPath, java.lang.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(java.lang.String fhirStore, java.lang.String gcsDeadLetterPath, @Nullable FhirIO.Import.ContentStructure contentStructure)
-
fhirStoresImport
public static FhirIO.Write fhirStoresImport(org.apache.beam.sdk.options.ValueProvider<java.lang.String> fhirStore, org.apache.beam.sdk.options.ValueProvider<java.lang.String> gcsTempPath, org.apache.beam.sdk.options.ValueProvider<java.lang.String> gcsDeadLetterPath, @Nullable FhirIO.Import.ContentStructure contentStructure)
-
executeBundles
public static FhirIO.Write executeBundles(java.lang.String fhirStore)
- Parameters:
fhirStore- the fhir store- Returns:
- the write
-
executeBundles
public static FhirIO.Write executeBundles(org.apache.beam.sdk.options.ValueProvider<java.lang.String> fhirStore)
- Parameters:
fhirStore- the fhir store- Returns:
- the write
-
expand
public FhirIO.Write.AbstractResult 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>,FhirIO.Write.AbstractResult>
-
-