Class ResultWriterOptions
java.lang.Object
com.inductiveautomation.historian.common.model.options.ResultWriterOptions
Represents the options for writing query results.
This class provides configuration for the format and structure of query results, including object types, result formats, and header alias mappings.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for constructing instances ofResultWriterOptions.static enumEnum representing the type of object for the query result.static enumEnum representing the format of the query result. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResultWriterOptions.Builderbuilder()Creates a newResultWriterOptions.Builderinstance for constructingResultWriterOptions.Retrieves the header alias map for the query result.getHeaderAliasOrDefault(String header, String defaultValue) Retrieves the alias for a given header, using case-insensitive matching.Retrieves the format of the query result.Retrieves the object type of the query result.
-
Method Details
-
getResultObjectType
Retrieves the object type of the query result.- Returns:
- The
ResultWriterOptions.ObjectTypeof the query result.
-
getResultFormat
Retrieves the format of the query result.- Returns:
- The
ResultWriterOptions.ResultFormatof the query result.
-
getHeaderAliasMap
Retrieves the header alias map for the query result. Note: Keys in this map are stored in lowercase to support case-insensitive lookups. Consider usinggetHeaderAliasOrDefault(String, String)for lookups instead.- Returns:
- A
Mapof header aliases, or an empty map if none are defined.
-
getHeaderAliasOrDefault
Retrieves the alias for a given header, using case-insensitive matching.- Parameters:
header- The header name to look up.defaultValue- The value to return if no alias is found.- Returns:
- The alias if found, otherwise the default value.
-
builder
Creates a newResultWriterOptions.Builderinstance for constructingResultWriterOptions.- Returns:
- A new
ResultWriterOptions.Builder.
-