Class SearchParametersTransportAdapter
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.index.SearchParametersTransportAdapter
-
- All Implemented Interfaces:
ParameterValueVisitorAdapter
public class SearchParametersTransportAdapter extends java.lang.Object implements ParameterValueVisitorAdapter
Visitor adapter implementation to build an instance ofSearchParametersTransport
to provide support for shipping a set of search parameter values off to a remote index service. This allows the parameters to be stored in the database in a separate transaction, and allows the inserts to be batched together, providing improved throughput.
-
-
Constructor Summary
Constructors Constructor Description SearchParametersTransportAdapter(java.lang.String resourceType, java.lang.String logicalId, long logicalResourceId, int versionId, java.time.Instant lastUpdated, java.lang.String requestShard, java.lang.String parameterHash)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchParametersTransport
build()
Build the SearchParametersTransport instance from the current state of buildervoid
dateValue(java.lang.String name, java.time.Instant valueDateStart, java.time.Instant valueDateEnd, java.lang.Integer compositeId, boolean wholeSystem)
Process a date parametervoid
locationValue(java.lang.String name, java.lang.Double valueLatitude, java.lang.Double valueLongitude, java.lang.Integer compositeId)
Process a location parametervoid
numberValue(java.lang.String name, java.math.BigDecimal valueNumber, java.math.BigDecimal valueNumberLow, java.math.BigDecimal valueNumberHigh, java.lang.Integer compositeId)
Process a number parametervoid
profileValue(java.lang.String name, java.lang.String url, java.lang.String version, java.lang.String fragment, boolean wholeSystem)
Process a profile parametervoid
quantityValue(java.lang.String name, java.lang.String valueSystem, java.lang.String valueCode, java.math.BigDecimal valueNumber, java.math.BigDecimal valueNumberLow, java.math.BigDecimal valueNumberHigh, java.lang.Integer compositeId)
Process a quantity parametervoid
referenceValue(java.lang.String name, java.lang.String refResourceType, java.lang.String refLogicalId, java.lang.Integer refVersion, java.lang.Integer compositeId)
Process a reference parametervoid
securityValue(java.lang.String name, java.lang.String valueSystem, java.lang.String valueCode, boolean wholeSystem)
Process a security parametervoid
stringValue(java.lang.String name, java.lang.String valueString, java.lang.Integer compositeId, boolean wholeSystem)
Process a string parametervoid
tagValue(java.lang.String name, java.lang.String valueSystem, java.lang.String valueCode, boolean wholeSystem)
Process a tag parametervoid
tokenValue(java.lang.String name, java.lang.String valueSystem, java.lang.String valueCode, java.lang.Integer compositeId, boolean wholeSystem)
Process a token parameter
-
-
-
Constructor Detail
-
SearchParametersTransportAdapter
public SearchParametersTransportAdapter(java.lang.String resourceType, java.lang.String logicalId, long logicalResourceId, int versionId, java.time.Instant lastUpdated, java.lang.String requestShard, java.lang.String parameterHash)
Public constructor- Parameters:
resourceType
-logicalId
-logicalResourceId
-versionId
-lastUpdated
-requestShard
-parameterHash
-
-
-
Method Detail
-
build
public SearchParametersTransport build()
Build the SearchParametersTransport instance from the current state of builder- Returns:
-
stringValue
public void stringValue(java.lang.String name, java.lang.String valueString, java.lang.Integer compositeId, boolean wholeSystem)
Description copied from interface:ParameterValueVisitorAdapter
Process a string parameter- Specified by:
stringValue
in interfaceParameterValueVisitorAdapter
-
numberValue
public void numberValue(java.lang.String name, java.math.BigDecimal valueNumber, java.math.BigDecimal valueNumberLow, java.math.BigDecimal valueNumberHigh, java.lang.Integer compositeId)
Description copied from interface:ParameterValueVisitorAdapter
Process a number parameter- Specified by:
numberValue
in interfaceParameterValueVisitorAdapter
-
dateValue
public void dateValue(java.lang.String name, java.time.Instant valueDateStart, java.time.Instant valueDateEnd, java.lang.Integer compositeId, boolean wholeSystem)
Description copied from interface:ParameterValueVisitorAdapter
Process a date parameter- Specified by:
dateValue
in interfaceParameterValueVisitorAdapter
-
tokenValue
public void tokenValue(java.lang.String name, java.lang.String valueSystem, java.lang.String valueCode, java.lang.Integer compositeId, boolean wholeSystem)
Description copied from interface:ParameterValueVisitorAdapter
Process a token parameter- Specified by:
tokenValue
in interfaceParameterValueVisitorAdapter
-
tagValue
public void tagValue(java.lang.String name, java.lang.String valueSystem, java.lang.String valueCode, boolean wholeSystem)
Description copied from interface:ParameterValueVisitorAdapter
Process a tag parameter- Specified by:
tagValue
in interfaceParameterValueVisitorAdapter
-
profileValue
public void profileValue(java.lang.String name, java.lang.String url, java.lang.String version, java.lang.String fragment, boolean wholeSystem)
Description copied from interface:ParameterValueVisitorAdapter
Process a profile parameter- Specified by:
profileValue
in interfaceParameterValueVisitorAdapter
-
securityValue
public void securityValue(java.lang.String name, java.lang.String valueSystem, java.lang.String valueCode, boolean wholeSystem)
Description copied from interface:ParameterValueVisitorAdapter
Process a security parameter- Specified by:
securityValue
in interfaceParameterValueVisitorAdapter
-
quantityValue
public void quantityValue(java.lang.String name, java.lang.String valueSystem, java.lang.String valueCode, java.math.BigDecimal valueNumber, java.math.BigDecimal valueNumberLow, java.math.BigDecimal valueNumberHigh, java.lang.Integer compositeId)
Description copied from interface:ParameterValueVisitorAdapter
Process a quantity parameter- Specified by:
quantityValue
in interfaceParameterValueVisitorAdapter
-
locationValue
public void locationValue(java.lang.String name, java.lang.Double valueLatitude, java.lang.Double valueLongitude, java.lang.Integer compositeId)
Description copied from interface:ParameterValueVisitorAdapter
Process a location parameter- Specified by:
locationValue
in interfaceParameterValueVisitorAdapter
-
referenceValue
public void referenceValue(java.lang.String name, java.lang.String refResourceType, java.lang.String refLogicalId, java.lang.Integer refVersion, java.lang.Integer compositeId)
Description copied from interface:ParameterValueVisitorAdapter
Process a reference parameter- Specified by:
referenceValue
in interfaceParameterValueVisitorAdapter
-
-