NXCALS-4712 Add new extraction builder stages
requested to merge feature-NXCALS-4712-refactor-api-methods-add-new-stages into feature-NXCALS-4712-refactor-API-methods-merge-branch
Modifications
- in
VariableStage
:variable
tonameEq
,nameIn
andnameLike
. From:
DataQuery.builder(session).byVariables().system("CMW").atTime(...).variable("SPS.VOLTAGE").build()
To:
DataQuery.builder(session).variables().system("CMW").atTime(...).nameEq("SPS.VOLTAGE").build()
- in
KeyValueStage
: removingentity()
and leaving instead onlykeyValuesEq
,keyValuesIn
andkeyValuesLike
. From:
DataQuery.builder(session).byEntities().system("CMW").atTime(...).entity().keyValue("Key", "Value").build()
To:
DataQuery.builder(session).entities().system("CMW").atTime(...).keyValuesEq(Maps.of("Key", "Value")).build()
- in
DeviceStage
: addingParameterStage
instead From:
DevicePropertyDataQuery.builder(session).system("CMW").atTime(...).entity().device("dev").property("prop").entity().parameter("dev/prop").build()
To:
ParameterDataQuery.builder(session).apply(null).system("CMW").atTime(...).parameterEq("dev/prop").build()
- rename
fieldAliases
tofieldsAlias
orfieldsAliases
@acc-logging-team - please have a look for approval.
Closes NXCALS-4712
Edited by Rafal Mucha