public static <M extends MatrixSchema<M>> Pipe<RowSchema<M>> buildProductGraphRR(GraphManager gm, int targetThreadCount, Pipe<RowSchema<M>> left, Pipe<RowSchema<M>> right) { Pipe<ColumnSchema<M>>[] colResults = buildProductGraphRC(gm, left, right, targetThreadCount); ////////////////// ////////////////// MatrixSchema resultSchema2 = colResults[0].config().schema().rootSchema(); PipeConfig<RowSchema<M>> config = new PipeConfig<RowSchema<M>>(new RowSchema<M>(resultSchema2), resultSchema2.getRows()); config.hideLabels(); Pipe<RowSchema<M>> rowResults = new Pipe<RowSchema<M>>(config); ColumnsToRowsStage<M> ctr = new ColumnsToRowsStage( gm, colResults, rowResults); return rowResults; }
public void run() { while (Pipe.hasRoomForWrite(matrixPipeOutput) && ((remainingRows<rowLimit)||allHaveContentToRead(columnPipeInput))) { assert(allHaveContentToRead(columnPipeInput)); requestShutdown(); return;
new ColumnsToRowsStage(gm, columnsPipes, rowsPipe); ByteArrayOutputStream capture = new ByteArrayOutputStream(); ConsoleJSONDumpStage<RowSchema<M>> watch = new ConsoleJSONDumpStage<>(gm, rowsPipe, new PrintStream(capture));
Pipe<ColumnSchema<M>>[] colResults = BuildMatrixCompute.buildProductGraphRC(gm, left, right, targetThreadCount-2); ColumnsToRowsStage<M> ctr = new ColumnsToRowsStage(gm, colResults, result);
targetThreadCount-2); ColumnsToRowsStage<M> ctr = new ColumnsToRowsStage(gm, colResults, result);