apoc.coll
Qualified Name | Type |
---|---|
apoc.coll.elements(list,limit,offset) yield _1,_2,..,_10,_1s,_2i,_3f,_4m,_5l,_6n,_7r,_8p - deconstruct subset of mixed list into identifiers of the correct type |
Procedure |
apoc.coll.partition(list,batchSize) |
Procedure |
apoc.coll.split(list,value) | splits collection on given values rows of lists, value itself will not be part of resulting lists |
Procedure |
apoc.coll.zipToRows(list1,list2) - creates pairs like zip but emits one row per pair |
Procedure |
apoc.coll.avg([0.5,1,2.3]) |
Function |
apoc.coll.combinations(coll, minSelect, maxSelect:minSelect) - Returns collection of all combinations of list elements of selection size between minSelect and maxSelect (default:minSelect), inclusive |
Function |
apoc.coll.contains(coll, value) optimized contains operation (using a HashSet) (returns single row or not) |
Function |
apoc.coll.containsAll(coll, values) optimized contains-all operation (using a HashSet) (returns single row or not) |
Function |
apoc.coll.containsAllSorted(coll, value) optimized contains-all on a sorted list operation (Collections.binarySearch) (returns single row or not) |
Function |
apoc.coll.containsDuplicates(coll) - returns true if a collection contains duplicate elements |
Function |
apoc.coll.containsSorted(coll, value) optimized contains on a sorted list operation (Collections.binarySearch) (returns single row or not) |
Function |
apoc.coll.different(values) - returns true if values are different |
Function |
apoc.coll.disjunction(first, second) - returns the disjunct set of the two lists |
Function |
apoc.coll.dropDuplicateNeighbors(list) - remove duplicate consecutive objects in a list |
Function |
apoc.coll.duplicates(coll) - returns a list of duplicate items in the collection |
Function |
apoc.coll.duplicatesWithCount(coll) - returns a list of duplicate items in the collection and their count, keyed by |
Function |
apoc.coll.fill(item, count) - returns a list with the given count of items |
Function |
apoc.coll.flatten(coll, [recursive]) - flattens list (nested if recursive is true) |
Function |
apoc.coll.frequencies(coll) - returns a list of frequencies of the items in the collection, keyed by |
Function |
apoc.coll.frequenciesAsMap(coll) - return a map of frequencies of the items in the collection, key |
Function |
apoc.coll.indexOf(coll, value) | position of value in the list |
Function |
apoc.coll.insert(coll, index, value) | insert value at index |
Function |
apoc.coll.insertAll(coll, index, values) | insert values at index |
Function |
apoc.coll.intersection(first, second) - returns the unique intersection of the two lists |
Function |
apoc.coll.isEqualCollection(coll, values) return true if two collections contain the same elements with the same cardinality in any order (using a HashMap) |
Function |
apoc.coll.max([0.5,1,2.3]) |
Function |
apoc.coll.min([0.5,1,2.3]) |
Function |
apoc.coll.occurrences(coll, item) - returns the count of the given item in the collection |
Function |
apoc.coll.pairs([1,2,3]) returns [1,2],[2,3],[3,null] |
Function |
apoc.coll.pairsMin([1,2,3]) returns [1,2],[2,3] |
Function |
apoc.coll.partition(list,batchSize) |
Function |
apoc.coll.randomItem(coll)- returns a random item from the list, or null on an empty or null list |
Function |
apoc.coll.randomItems(coll, itemCount, allowRepick: false) - returns a list of itemCount random items from the original list, optionally allowing picked elements to be picked again |
Function |
apoc.coll.remove(coll, index, [length=1]) | remove range of values from index to length |
Function |
apoc.coll.removeAll(first, second) - returns first list with all elements of second list removed |
Function |
apoc.coll.reverse(coll) - returns reversed list |
Function |
apoc.coll.set(coll, index, value) | set index to value |
Function |
apoc.coll.shuffle(coll) - returns the shuffled list |
Function |
apoc.coll.sort(coll) sort on Collections |
Function |
apoc.coll.sortMaps([maps], 'name') - sort maps by property |
Function |
apoc.coll.sortMulti(coll, ['^name','age'],[limit],[skip]) - sort list of maps by several sort fields (ascending with ^ prefix) and optionally applies limit and skip |
Function |
apoc.coll.sortNodes([nodes], 'name') sort nodes by property |
Function |
apoc.coll.sortText(coll) sort on string based collections |
Function |
apoc.coll.subtract(first, second) - returns unique set of first list with all elements of second list removed |
Function |
apoc.coll.sum([0.5,1,2.3]) |
Function |
apoc.coll.sumLongs([1,3,3]) |
Function |
apoc.coll.toSet([list]) returns a unique list backed by a set |
Function |
apoc.coll.union(first, second) - creates the distinct union of the 2 lists |
Function |
apoc.coll.unionAll(first, second) - creates the full union with duplicates of the two lists |
Function |
apoc.coll.zip([list1],[list2]) |
Function |