@Test void setByWith() { Flux flux = Flux .from("telegraf") .set() .withKeyValue("type", "telegraphs"); Assertions.assertThat(flux.toString()).isEqualToIgnoringWhitespace("from(bucket:\"telegraf\") |> set(key: \"type\", value: \"telegraphs\")"); }
@Nonnull public SetFlux withKeyValue(@Nonnull final String key, @Nonnull final String value) { Arguments.checkNonEmpty(key, "Key"); Arguments.checkNonEmpty(value, "Value"); withPropertyValueEscaped("key", key); withPropertyValueEscaped("value", value); return this; }
SetFlux extends AbstractParametrizedFlux { @Nonnull public SetFlux withKeyValue(@Nonnull final String key, @Nonnull final String value) { Arguments.checkNonEmpty(key, "Key"); Arguments.checkNonEmpty(value, "Value"); withPropertyValueEscaped("key", key); withPropertyValueEscaped("value", value); return this; } }
SetFlux extends AbstractParametrizedFlux { @Nonnull public SetFlux withKeyValue(@Nonnull final String key, @Nonnull final String value) { Arguments.checkNonEmpty(key, "Key"); Arguments.checkNonEmpty(value, "Value"); withPropertyValueEscaped("key", key); withPropertyValueEscaped("value", value); return this; } SetFlux(@Nonnull final Flux source); }
SetFlux extends AbstractParametrizedFlux { @Nonnull public SetFlux withKeyValue(@Nonnull final String key, @Nonnull final String value) { Arguments.checkNonEmpty(key, "Key"); Arguments.checkNonEmpty(value, "Value"); withPropertyValueEscaped("key", key); withPropertyValueEscaped("value", value); return this; } SetFlux(@Nonnull final Flux source); @Nonnull SetFlux withKeyValue(@Nonnull final String key, @Nonnull final String value); }
SetFlux extends AbstractParametrizedFlux { @Nonnull public SetFlux withKeyValue(@Nonnull final String key, @Nonnull final String value) { Arguments.checkNonEmpty(key, "Key"); Arguments.checkNonEmpty(value, "Value"); withPropertyValueEscaped("key", key); withPropertyValueEscaped("value", value); return this; } SetFlux(@Nonnull final Flux source); @Nonnull SetFlux withKeyValue(@Nonnull final String key, @Nonnull final String value);  }