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 newMetadataQueryOptions
instance.protected MetadataQueryOptions.Builder
self()
Returns thisBuilder
instance 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 thisBuilder
instance for method chaining.- Specified by:
self
in 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
Builder
instance for method chaining.
-
addMetadataFilter
Adds a metadata filter using the specifiedPropertyValue
.- Parameters:
propertyValue
- ThePropertyValue
to add to the filter.- Returns:
- This
Builder
instance for method chaining.
-
addMetadataFilter
Adds multiple metadata filters using the specifiedPropertySet
.- Parameters:
propertySet
- ThePropertySet
containing the filters to add.- Returns:
- This
Builder
instance for method chaining.
-
build
Builds and returns a newMetadataQueryOptions
instance.- Specified by:
build
in classAbstractQueryOptions.BaseBuilder<MetadataQueryKey,
ComplexPointType, MetadataQueryOptions.Builder> - Returns:
- A new
MetadataQueryOptions
.
-