use of org.hypertrace.entity.data.service.v1.Empty in project entity-service by hypertrace.
the class DocStoreConverter method transformNonListRhsFilterTypes.
private static Filter transformNonListRhsFilterTypes(AttributeFilter filter) {
try {
Filter f = new Filter();
f.setFieldName(filter.getName());
f.setOp(transform(filter.getOperator()));
transform(filter.getAttributeValue(), f, isPartOfAttributeMap(f.getFieldName()));
// Set child filters to empty string
f.setChildFilters(new Filter[] {});
return f;
} catch (IOException ioe) {
throw new IllegalArgumentException(String.format("transformNonListRhsFilterTypes: Error converting filter for query. Filter: %s", filter), ioe);
}
}
use of org.hypertrace.entity.data.service.v1.Empty in project entity-service by hypertrace.
the class DocStoreConverter method createEqFilterForAttributeValue.
private static Filter createEqFilterForAttributeValue(String fieldName, AttributeValue attributeValue) {
Filter f = new Filter();
f.setFieldName(fieldName);
f.setOp(Op.EQ);
f.setValue(prepareRhsValueForSpecialValueListCase(attributeValue));
// Set child filters to empty array
f.setChildFilters(new Filter[] {});
return f;
}
Aggregations