New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate all functions to User Defined Functions for Neo4j 3.1 #144

Closed
jexp opened this Issue Sep 12, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@jexp
Member

jexp commented Sep 12, 2016

On branch 3.1 we want to migrate all procedures that are actually functions to the brand new user-defined functions API.

That includes all conversion, math and partially procedures that create new data structures like maps etc.

See: neo4j/neo4j#7851

A incomplete list of procedures to convert:

  • apoc.cache.Static Stream getAll(@name("prefix") String prefix)
  • apoc.coll.Coll Stream contains(@name("coll") List coll, @name("value") Object value)
  • apoc.coll.Coll Stream containsAll(@name("coll") List coll, @name("values") List values)
  • apoc.coll.Coll Stream containsSorted(@name("coll") List coll, @name("value") Object value)
  • apoc.coll.Coll Stream containsAllSorted(@name("coll") List coll, @name("values") List values)
  • apoc.convert.Convert Stream toMap(@name("map") Object map)
  • apoc.convert.Convert Stream toString(@name("string") Object string)
  • apoc.convert.Convert Stream toBoolean(@name("bool") Object bool)
  • apoc.convert.Json Stream toJson(@name("value") Object value)
  • apoc.convert.Json Stream fromJsonMap(@name("map") String value)
  • apoc.convert.Json Stream toTree(@name("paths") List paths)
  • apoc.data.Extract Stream domain(final @name("url_or_email_address") String value)
  • apoc.date.Date Stream formatDefault(final @name("time") long time, @name("unit") String unit)
  • apoc.date.Date Stream format(final @name("time") long time, @name("unit") String unit, @name("format") String format)
  • apoc.date.Date Stream formatTimeZone(final @name("time") long time, @name("unit") String unit, @name("format") String format, @name("timezone") String timezone)
  • apoc.date.Date Stream parse(final @name("millis") long millis, final @name("pattern") String pattern)
  • apoc.map.Maps Stream fromPairs(@name("pairs") List<List> pairs)
  • apoc.map.Maps Stream fromLists(@name("keys") List keys, @name("values") List values)
  • apoc.map.Maps Stream fromValues(@name("values") List values)
  • apoc.map.Maps Stream merge(@name("first") Map<String,Object> first, @name("second") Map<String,Object> second)
  • apoc.map.Maps Stream setKey(@name("map") Map<String,Object> map, @name("key") String key, @name("value") Object value)
  • apoc.map.Maps Stream setEntry(@name("map") Map<String,Object> map, @name("key") String key, @name("value") Object value)
  • apoc.map.Maps Stream setPairs(@name("map") Map<String,Object> map, @name("pairs") List<List> pairs)
  • apoc.map.Maps Stream setLists(@name("map") Map<String,Object> map, @name("keys") List keys, @name("values") List values)
  • apoc.map.Maps Stream setValues(@name("map") Map<String,Object> map, @name("pairs") List pairs)
  • apoc.map.Maps Stream removeKey(@name("map") Map<String,Object> map, @name("key") String key)
  • apoc.map.Maps Stream removeKeys(@name("map") Map<String,Object> map, @name("keys") List keys)
  • apoc.map.Maps Stream clean(@name("map") Map<String,Object> map, @name("keys") List keys, @name("values") List values)
  • apoc.map.Maps Stream flatten(@name("map") Map<String, Object> map)
  • apoc.meta.Meta Stream type(@name("value") Object value)
  • apoc.meta.Meta Stream types(@name("properties") Object target)
  • apoc.meta.Meta Stream isType(@name("value") Object value, @name("type") String type)
  • apoc.number.Number.java: public Stream format(final @name("number") Object number)
  • apoc.number.Number.java: public Stream formatByPattern(final @name("number") Object number, final @name("pattern") String pattern)
  • apoc.number.Number.java: public Stream formatByLanguage(final @name("number") Object number, final @name("lang") String lang)
  • apoc.number.Number.java: public Stream formatByPatternAndLanguage(final @name("number") Object number, final @name("pattern") String pattern, final @name("lang") String lang)
  • apoc.text.Phonetic Stream phonetic(final @name("value") Object value)
  • apoc.text.Strings Stream replace(final @name("text") String text, final @name("regex") String regex, final @name("replacement") String replacement)
  • apoc.text.Strings Stream join(
  • apoc.text.Strings Stream clean(final @name("text") String text)
  • apoc.text.Strings Stream compareCleaned(final @name("text1") String text1, final @name("text2") String text2)
  • apoc.text.Strings Stream filterCleanMatches(final @name("text1") String text1, final @name("text2") String text2)
  • apoc.text.Strings Stream urlencode(@name("text") String text)
  • apoc.text.Strings Stream urldecode(@name("text") String text)
  • apoc.util.Utils Stream sha1(@name("values") List values)
  • apoc.util.Utils Stream md5(@name("values") List values)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment