All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.redis.om.spring.search.stream.actions.NumIncrByAction Maven / Gradle / Ivy

package com.redis.om.spring.search.stream.actions;

import java.lang.reflect.Field;
import java.util.function.Consumer;

import com.redislabs.modules.rejson.Path;

public class NumIncrByAction extends BaseAbstractAction implements Consumer {
  private Long value;

  public NumIncrByAction(Field field, Long value) {
    super(field);
    this.value = value;
  }

  @Override
  public void accept(E entity) {
    json.numIncrBy(getKey(entity), Path.of("." + field.getName()), value);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy