public static class BroadcastableValueSets.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
BroadcastableValueSets.Builder |
addCode(String referenceName,
String system,
String code)
Adds a code under the given reference name to the value set.
|
BroadcastableValueSets.Builder |
addDescendantsOf(String referenceName,
String ancestorSystem,
String ancestorValue,
String hierarchyUri)
Add "descendants" of a given code value, that is code values
that are transitively subsumed by the given value in the given hierarchy.
|
BroadcastableValueSets.Builder |
addDescendantsOf(String referenceName,
String ancestorSystem,
String ancestorValue,
String hierarchyUri,
String hierarchyVersion)
Add "descendants" of a given code value, that is code values
that are transitively subsumed by the given value in the given hierarchy.
|
BroadcastableValueSets.Builder |
addReference(String referenceName,
String valueSetUri)
Add a "reference" to a value set, that is, create a user-defined reference name for a value
set of codes.
|
BroadcastableValueSets.Builder |
addReference(String referenceName,
String valueSetUri,
String valueSetVersion)
Add a "reference" to a value set, that is, create a user-defined reference name for a value
set of codes.
|
BroadcastableValueSets |
build(org.apache.spark.sql.SparkSession spark,
AbstractValueSets valueSets)
Returns broadcastable value sets by loading reference data that was added to this builder and
the default value sets.
|
BroadcastableValueSets |
build(org.apache.spark.sql.SparkSession spark,
AbstractValueSets valueSets,
Hierarchies hierarchies)
Returns broadcastable value sets by loading reference data that was added to this builder and
the given value sets.
|
public BroadcastableValueSets.Builder addCode(String referenceName, String system, String code)
referenceName - the reference name of the value setsystem - the code system to addcode - the code value to addpublic BroadcastableValueSets.Builder addReference(String referenceName, String valueSetUri)
referenceName - the value set reference name to be used in the user codevalueSetUri - the value set uri that contains codes to referencepublic BroadcastableValueSets.Builder addReference(String referenceName, String valueSetUri, String valueSetVersion)
referenceName - the value set reference name to be used in user codevalueSetUri - the value set uri that contains codes to referencevalueSetVersion - the value set version that contains codes to referencepublic BroadcastableValueSets.Builder addDescendantsOf(String referenceName, String ancestorSystem, String ancestorValue, String hierarchyUri)
This function creates a collection of ancestors to query, and the descendants are actually retrieved with the broadcastable value set is built.
referenceName - the valueset reference name to be used in user code.ancestorSystem - the ancestor system of descendants to includeancestorValue - the ancestor value of descendants to includehierarchyUri - the hierarchy URI that defines the descendantspublic BroadcastableValueSets.Builder addDescendantsOf(String referenceName, String ancestorSystem, String ancestorValue, String hierarchyUri, String hierarchyVersion)
This function creates a collection of ancestors to query, and the descendants are actually retrieved with the broadcastable value set is built.
referenceName - the valueset reference name to be used in user code.ancestorSystem - the ancestor system of descendants to includeancestorValue - the ancestor value of descendants to includehierarchyUri - the hierarchy URI that defines the descendantshierarchyVersion - the hierarchy version that defines the descendantspublic BroadcastableValueSets build(org.apache.spark.sql.SparkSession spark, AbstractValueSets valueSets)
spark - the Spark session used to load reference datavalueSets - a AbstractValueSets instance defining the value set data to loadBroadcastableValueSets instance.public BroadcastableValueSets build(org.apache.spark.sql.SparkSession spark, AbstractValueSets valueSets, Hierarchies hierarchies)
spark - the Spark session used to load reference datavalueSets - a AbstractValueSets instance defining the value set data to loadhierarchies - a Hierarchies instance defining hierarchical reference data to
loadBroadcastableValueSets instance.Copyright © 2020. All rights reserved.