MCPcopy Create free account
hub / github.com/apache/calcite / skipLast

Method skipLast

core/src/main/java/org/apache/calcite/util/Util.java:2208–2210  ·  view source on GitHub ↗

Returns every element of a list but its last element.

(List<E> list)

Source from the content-addressed store, hash-verified

2206
2207 /** Returns every element of a list but its last element. */
2208 public static <E> List<E> skipLast(List<E> list) {
2209 return skipLast(list, 1);
2210 }
2211
2212 /** Returns every element of a list but its last {@code n} elements. */
2213 public static <E> List<E> skipLast(List<E> list, int n) {

Callers 15

patternConcatMethod · 0.95
translateAggMethod · 0.95
rewriteCallMethod · 0.95
stripOrderByMethod · 0.95
stripSeparatorMethod · 0.95
getTypeEntryMethod · 0.95
getTableEntryMethod · 0.95
unwrapMethod · 0.95
getFunctionsFromMethod · 0.95
createQueryableMethod · 0.95

Calls 2

subListMethod · 0.65
sizeMethod · 0.65

Tested by 4

schemaMethod · 0.76
registerTypeMethod · 0.76
reregisterTableMethod · 0.76
registerTableMethod · 0.76