spotless
This commit is contained in:
parent
ac6178bb54
commit
86eac55d14
|
@ -77,8 +77,10 @@ public class ExtendedHSearchIndexExtractor {
|
|||
}
|
||||
|
||||
@Nonnull
|
||||
public ExtendedHSearchIndexData extract(IBaseResource theResource, ResourceTable theEntity, ResourceIndexedSearchParams theNewParams) {
|
||||
ExtendedHSearchIndexData retVal = new ExtendedHSearchIndexData(myContext, myJpaStorageSettings, theResource, theEntity);
|
||||
public ExtendedHSearchIndexData extract(
|
||||
IBaseResource theResource, ResourceTable theEntity, ResourceIndexedSearchParams theNewParams) {
|
||||
ExtendedHSearchIndexData retVal =
|
||||
new ExtendedHSearchIndexData(myContext, myJpaStorageSettings, theResource, theEntity);
|
||||
|
||||
if (myJpaStorageSettings.isStoreResourceInHSearchIndex()) {
|
||||
retVal.setRawResourceData(myContext.newJsonParser().encodeResourceToString(theResource));
|
||||
|
@ -116,7 +118,6 @@ public class ExtendedHSearchIndexExtractor {
|
|||
.filter(nextParam -> !nextParam.isMissing())
|
||||
.forEach(nextParam -> retVal.addUriIndexData(nextParam.getParamName(), nextParam.getUri()));
|
||||
|
||||
|
||||
theEntity.getTags().forEach(tag -> {
|
||||
TagDefinition td = tag.getTag();
|
||||
|
||||
|
@ -148,15 +149,10 @@ public class ExtendedHSearchIndexExtractor {
|
|||
retVal.addCompositeIndexData(nextParam.getSearchParamName(), buildCompositeIndexData(nextParam)));
|
||||
|
||||
if (theEntity.getUpdated() != null && !theEntity.getUpdated().isEmpty()) {
|
||||
int ordinal = ResourceIndexedSearchParamDate.calculateOrdinalValue(
|
||||
theEntity.getUpdatedDate())
|
||||
int ordinal = ResourceIndexedSearchParamDate.calculateOrdinalValue(theEntity.getUpdatedDate())
|
||||
.intValue();
|
||||
retVal.addDateIndexData(
|
||||
"_lastUpdated",
|
||||
theEntity.getUpdatedDate(),
|
||||
ordinal,
|
||||
theEntity.getUpdatedDate(),
|
||||
ordinal);
|
||||
"_lastUpdated", theEntity.getUpdatedDate(), ordinal, theEntity.getUpdatedDate(), ordinal);
|
||||
}
|
||||
|
||||
if (!theNewParams.myLinks.isEmpty()) {
|
||||
|
|
|
@ -111,7 +111,7 @@ public class ExtendedHSearchSearchBuilder {
|
|||
} else {
|
||||
// are the parameter values supported?
|
||||
canUseHibernate =
|
||||
theParams.get(paramName).stream()
|
||||
theParams.get(paramName).stream()
|
||||
.flatMap(Collection::stream)
|
||||
.collect(Collectors.toList())
|
||||
.stream()
|
||||
|
@ -164,9 +164,9 @@ public class ExtendedHSearchSearchBuilder {
|
|||
DateRangeParam lastUpdated = theMap.getLastUpdated();
|
||||
|
||||
return lastUpdated.getLowerBound() != null
|
||||
&& isParamTypeSupported(lastUpdated.getLowerBound())
|
||||
&& lastUpdated.getUpperBound() != null
|
||||
&& isParamTypeSupported(lastUpdated.getUpperBound());
|
||||
&& isParamTypeSupported(lastUpdated.getLowerBound())
|
||||
&& lastUpdated.getUpperBound() != null
|
||||
&& isParamTypeSupported(lastUpdated.getUpperBound());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -61,10 +61,10 @@ public class ExtendedHSearchIndexData {
|
|||
private ResourceTable myEntity;
|
||||
|
||||
public ExtendedHSearchIndexData(
|
||||
FhirContext theFhirContext,
|
||||
StorageSettings theStorageSettings,
|
||||
IBaseResource theResource,
|
||||
ResourceTable theEntity) {
|
||||
FhirContext theFhirContext,
|
||||
StorageSettings theStorageSettings,
|
||||
IBaseResource theResource,
|
||||
ResourceTable theEntity) {
|
||||
this.myFhirContext = theFhirContext;
|
||||
this.myStorageSettings = theStorageSettings;
|
||||
myResource = theResource;
|
||||
|
|
Loading…
Reference in New Issue