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

com.redis.om.spring.search.stream.actions.ArrayAppendAction 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 ArrayAppendAction extends BaseAbstractAction implements Consumer {

  private Object value;

  public ArrayAppendAction(Field field, Object value) {
    super(field);
    this.value = value;
  }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy