Home
last modified time | relevance | path

Searched refs:Nodes (Results 1 – 13 of 13) sorted by relevance

/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DNodeTest.java49 nodes.add(Nodes.node(array)); in createSizes()
50 nodes.add(Nodes.node(Arrays.asList(array))); in createSizes()
52 … nodes.add(tree(Arrays.asList(array), l -> Nodes.node(l.toArray(new Integer[l.size()])))); in createSizes()
53 nodes.add(tree(Arrays.asList(array), l -> Nodes.node(l))); in createSizes()
54 … nodes.add(fill(array, Nodes.builder(array.length, LambdaTestHelpers.integerArrayGenerator))); in createSizes()
55 nodes.add(fill(array, Nodes.builder())); in createSizes()
77 return Nodes.node(Collections.emptyList()); in degenerateTree()
82 return new Nodes.ConcNode<Integer>(Nodes.node(new Integer[] {i}), degenerateTree(it)); in degenerateTree()
85 return Nodes.node(new Integer[]{i}); in degenerateTree()
94 return new Nodes.ConcNode<>( in tree()
[all …]
DLongNodeTest.java50 nodes.add(Nodes.node(array)); in createSizes()
52 nodes.add(tree(toList(array), l -> Nodes.node(toLongArray(l)))); in createSizes()
53 nodes.add(fill(array, Nodes.longBuilder(array.length))); in createSizes()
54 nodes.add(fill(array, Nodes.longBuilder())); in createSizes()
100 return Nodes.node(new long[0]); in degenerateTree()
105 return new Nodes.ConcNode.OfLong(Nodes.node(new long[] {i}), degenerateTree(it)); in degenerateTree()
108 return Nodes.node(new long[] {i}); in degenerateTree()
117 return new Nodes.ConcNode.OfLong( in tree()
130 assertEquals(Nodes.flattenLong(n).asPrimitiveArray(), array); in testFlattenAsArray()
DIntNodeTest.java50 nodes.add(Nodes.node(array)); in createSizes()
52 nodes.add(tree(toList(array), l -> Nodes.node(toIntArray(l)))); in createSizes()
53 nodes.add(fill(array, Nodes.intBuilder(array.length))); in createSizes()
54 nodes.add(fill(array, Nodes.intBuilder())); in createSizes()
100 return Nodes.node(new int[0]); in degenerateTree()
105 return new Nodes.ConcNode.OfInt(Nodes.node(new int[] {i}), degenerateTree(it)); in degenerateTree()
108 return Nodes.node(new int[] {i}); in degenerateTree()
117 return new Nodes.ConcNode.OfInt( in tree()
130 assertEquals(Nodes.flattenInt(n).asPrimitiveArray(), array); in testFlattenAsArray()
DDoubleNodeTest.java50 nodes.add(Nodes.node(array)); in createSizes()
52 nodes.add(tree(toList(array), l -> Nodes.node(toDoubleArray(l)))); in createSizes()
53 nodes.add(fill(array, Nodes.doubleBuilder(array.length))); in createSizes()
54 nodes.add(fill(array, Nodes.doubleBuilder())); in createSizes()
100 return Nodes.node(new double[0]); in degenerateTree()
105 return new Nodes.ConcNode.OfDouble(Nodes.node(new double[] {i}), degenerateTree(it)); in degenerateTree()
108 return Nodes.node(new double[] {i}); in degenerateTree()
117 return new Nodes.ConcNode.OfDouble( in tree()
130 assertEquals(Nodes.flattenDouble(n).asPrimitiveArray(), array); in testFlattenAsArray()
DNodeBuilderTest.java56 s -> Nodes.builder(), in createNodeBuilders()
57 s -> Nodes.builder(s, LambdaTestHelpers.integerArrayGenerator) in createNodeBuilders()
101 s -> Nodes.intBuilder(), in createIntNodeBuilders()
102 s -> Nodes.intBuilder(s) in createIntNodeBuilders()
151 s -> Nodes.longBuilder(), in createLongNodeBuilders()
152 s -> Nodes.longBuilder(s) in createLongNodeBuilders()
201 s -> Nodes.doubleBuilder(), in createDoubleNodeBuilders()
202 s -> Nodes.doubleBuilder(s) in createDoubleNodeBuilders()
/libcore/ojluni/src/main/java/java/util/stream/
DNode.java127 Node.Builder<T> nodeBuilder = Nodes.builder(size, generator); in truncate()
270 if (size >= Nodes.MAX_ARRAY_SIZE) in asArray()
271 throw new IllegalArgumentException(Nodes.BAD_SIZE); in asArray()
362 Node.Builder.OfInt nodeBuilder = Nodes.intBuilder(size); in truncate()
435 Node.Builder.OfLong nodeBuilder = Nodes.longBuilder(size); in truncate()
510 Node.Builder.OfDouble nodeBuilder = Nodes.doubleBuilder(size); in truncate()
DSliceOps.java173 return Nodes.collect(helper, s, true, generator); in makeRef()
182 return Nodes.collect(this, s, true, generator); in makeRef()
285 return Nodes.collectInt(helper, s, true);
294 return Nodes.collectInt(this, s, true);
397 return Nodes.collectLong(helper, s, true);
406 return Nodes.collectLong(this, s, true);
509 return Nodes.collectDouble(helper, s, true);
518 return Nodes.collectDouble(this, s, true);
607 return Nodes.emptyNode(op.getOutputShape());
647 result = Nodes.conc(op.getOutputShape(),
DDistinctOps.java64 return Nodes.node(reduceOp.evaluateParallel(helper, spliterator)); in makeRef()
99 return Nodes.node(keys); in makeRef()
DIntPipeline.java146 return Nodes.collectInt(helper, spliterator, flattenTree); in evaluateToNode()
176 return Nodes.intBuilder(exactSizeIfKnown); in makeNodeBuilder()
519 return Nodes.flattenInt((Node.OfInt) evaluateToArrayNode(Integer[]::new))
DLongPipeline.java144 return Nodes.collectLong(helper, spliterator, flattenTree); in evaluateToNode()
173 return Nodes.longBuilder(exactSizeIfKnown); in makeNodeBuilder()
501 return Nodes.flattenLong((Node.OfLong) evaluateToArrayNode(Long[]::new))
DSpinedBuffer.java216 if (size >= Nodes.MAX_ARRAY_SIZE) in asArray()
217 throw new IllegalArgumentException(Nodes.BAD_SIZE); in asArray()
562 if (size >= Nodes.MAX_ARRAY_SIZE) in asPrimitiveArray()
563 throw new IllegalArgumentException(Nodes.BAD_SIZE); in asPrimitiveArray()
DNodes.java52 final class Nodes { class
54 private Nodes() { in Nodes() method in Nodes
788 return new Nodes.InternalNodeSpliterator.OfRef<>(this); in spliterator()
826 return Nodes.conc(getShape(), left.truncate(from, leftCount, generator), in truncate()
2207 super(helper, spliterator, Nodes::intBuilder, ConcNode.OfInt::new);
2215 super(helper, spliterator, Nodes::longBuilder, ConcNode.OfLong::new);
2223 super(helper, spliterator, Nodes::doubleBuilder, ConcNode.OfDouble::new);
/libcore/
Dopenjdk_java_files.bp1090 "ojluni/src/main/java/java/util/stream/Nodes.java",