Skip to content

NXCALS-4712 Add new extraction builder stages

Modifications

  • in VariableStage: variable to nameEq, nameIn and nameLike. 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: removing entity() and leaving instead only keyValuesEq, keyValuesIn and keyValuesLike. 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: adding ParameterStage 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 to fieldsAlias or fieldsAliases

@acc-logging-team - please have a look for approval.

Closes NXCALS-4712

Edited by Rafal Mucha

Merge request reports