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

Method stripList

core/src/main/java/org/apache/calcite/sql/SqlPivot.java:106–109  ·  view source on GitHub ↗
(SqlNodeList list)

Source from the content-addressed store, hash-verified

104 }
105
106 static SqlNodeList stripList(SqlNodeList list) {
107 return list.stream().map(SqlPivot::strip)
108 .collect(SqlNode.toList(list.pos));
109 }
110
111 /** Converts a single-element SqlNodeList to its constituent node.
112 * For example, "(1)" becomes "1";

Callers 3

unparseMethod · 0.95
unparseMethod · 0.95
unparseMethod · 0.80

Calls 4

toListMethod · 0.95
mapMethod · 0.65
streamMethod · 0.65
collectMethod · 0.45

Tested by

no test coverage detected