Class MetadataQueryOptions.Builder
java.lang.Object
com.inductiveautomation.historian.common.model.options.AbstractQueryOptions.BaseBuilder<MetadataQueryKey,ComplexPointType,MetadataQueryOptions.Builder>
com.inductiveautomation.historian.common.model.options.MetadataQueryOptions.Builder
- Enclosing class:
- MetadataQueryOptions
public static class MetadataQueryOptions.Builder
extends AbstractQueryOptions.BaseBuilder<MetadataQueryKey,ComplexPointType,MetadataQueryOptions.Builder>
A builder class for constructing instances of
MetadataQueryOptions.-
Field Summary
Fields inherited from class com.inductiveautomation.historian.common.model.options.AbstractQueryOptions.BaseBuilder
returnSize -
Method Summary
Modifier and TypeMethodDescriptionaddMetadataFilter(PropertySet propertySet) Adds multiple metadata filters using the specifiedPropertySet.addMetadataFilter(PropertyValue propertyValue) Adds a metadata filter using the specifiedPropertyValue.addMetadataFilter(String key, Object value) Adds a metadata filter with the specified key and value.build()Builds and returns a newMetadataQueryOptionsinstance.protected MetadataQueryOptions.Builderself()Returns thisBuilderinstance for method chaining.Methods inherited from class com.inductiveautomation.historian.common.model.options.AbstractQueryOptions.BaseBuilder
addPropertyValue, addPropertyValues, addQueryKey, addQueryKeys, calculateTimeRange, clearQueryKeys, endTime, endTime, excludeBounds, includeBounds, rangeHours, rangeMinutes, rangeSeconds, returnSize, startTime, startTime
-
Method Details
-
self
Returns thisBuilderinstance for method chaining.- Specified by:
selfin classAbstractQueryOptions.BaseBuilder<MetadataQueryKey,ComplexPointType, MetadataQueryOptions.Builder> - Returns:
- This
Builder.
-
addMetadataFilter
Adds a metadata filter with the specified key and value.- Parameters:
key- The key of the metadata filter.value- The value of the metadata filter.- Returns:
- This
Builderinstance for method chaining.
-
addMetadataFilter
Adds a metadata filter using the specifiedPropertyValue.- Parameters:
propertyValue- ThePropertyValueto add to the filter.- Returns:
- This
Builderinstance for method chaining.
-
addMetadataFilter
Adds multiple metadata filters using the specifiedPropertySet.- Parameters:
propertySet- ThePropertySetcontaining the filters to add.- Returns:
- This
Builderinstance for method chaining.
-
build
Builds and returns a newMetadataQueryOptionsinstance.- Specified by:
buildin classAbstractQueryOptions.BaseBuilder<MetadataQueryKey,ComplexPointType, MetadataQueryOptions.Builder> - Returns:
- A new
MetadataQueryOptions.
-