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

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

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

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

import com.redislabs.modules.rejson.Path;

public class StrLengthAction extends BaseAbstractAction implements ToLongFunction {

  public StrLengthAction(Field field) {
    super(field);
  }

  @Override
  public long applyAsLong(E value) {
    return json.strLen(getKey(value), Path.of("." + field.getName()));
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy