Tabnine Logo
MatrixSchema.getRows
Code IndexAdd Tabnine to your IDE (free)

How to use
getRows
method
in
com.ociweb.pronghorn.stage.math.MatrixSchema

Best Java code snippets using com.ociweb.pronghorn.stage.math.MatrixSchema.getRows (Showing top 12 results out of 315)

origin: oci-pronghorn/Pronghorn

protected ColumnSchema(MatrixSchema<M> matrixSchema) {
  super(matrixSchema.getRows(), 1, matrixSchema.type, FieldReferenceOffsetManager.buildSingleNumberBlockFrom(matrixSchema.rows, matrixSchema.type.typeMask, "Matrix"));	
  this.root = matrixSchema;
}
  
origin: oci-pronghorn/Pronghorn

public static MatrixSchema buildResultSchema(MatrixSchema leftSchema, MatrixSchema rightSchema) {
  assert(leftSchema.type == rightSchema.type);
  return buildSchema(leftSchema.getRows(), rightSchema.getColumns(), leftSchema.type);
}
origin: oci-pronghorn/Pronghorn

this.rowLimit = resultSchema.getRows();		
this.remainingRows = rowLimit; 
if (resultSchema.getRows() != cSchema.getRows()) {
  throw new UnsupportedOperationException("rows count of left input must match result output "+cSchema.getColumns()+" vs "+resultSchema.getRows());
origin: oci-pronghorn/Pronghorn

/**
 *
 * @param graphManager
 * @param input _in_ Input pipe as matrix with RowSchema
 * @param output _out_ Output pipe in which RowSchema is converted to DecimalSchema
 */
public ConvertToDecimalStage(GraphManager graphManager, Pipe<RowSchema<M>> input, Pipe<DecimalSchema<M>> output) {
  super(graphManager, input, output);
  
  this.input = input;
  this.output = output;
  M schema = (M) input.config().schema();
  this.blockSize = schema.getRows()*schema.getColumns();
  this.inputType = schema.type;
}
origin: oci-pronghorn/Pronghorn

protected RowsToColumnRouteStage(GraphManager graphManager, Pipe<RowSchema<M>> rowPipeInput, Pipe<ColumnSchema<M>>[] columnPipeOutput) {
  super(graphManager, rowPipeInput, columnPipeOutput);
  
  M matrixSchema = (M) rowPipeInput.config().schema().rootSchema();
  this.rowPipeInput = rowPipeInput;
  this.columnPipeOutput = columnPipeOutput;
  this.matrixSchema = matrixSchema;
  this.rowLimit = matrixSchema.getRows();
  this.remainingRows = rowLimit;
  this.sizeOf = Pipe.sizeOf(columnPipeOutput[0], matrixSchema.columnId);
  if (matrixSchema.columns != columnPipeOutput.length) {
    throw new UnsupportedOperationException(matrixSchema.columns+" was expected to match "+columnPipeOutput.length);
  }
}
origin: oci-pronghorn/Pronghorn

/**
 *
 * @param graphManager
 * @param columnPipeInput _in_ Pipes containing ColumnSchema that will be converted to RowSchema
 * @param matrixPipeOutput _out_ Pipes onto which ColumnSchema will be output to RowSchema
 */
public ColumnsToRowsStage(GraphManager graphManager, Pipe<ColumnSchema<M>>[] columnPipeInput, Pipe<RowSchema<M>> matrixPipeOutput) {
  super(graphManager, columnPipeInput, matrixPipeOutput);
  
  M matrixSchema = (M) matrixPipeOutput.config().schema().rootSchema();
  
  this.columnPipeInput = columnPipeInput;
  this.matrixPipeOutput = matrixPipeOutput;	
  this.matrixSchema = matrixSchema;
  this.shutdownCount = columnPipeInput.length;
  this.typeSize = matrixSchema.typeSize;
  this.rowLimit = matrixSchema.getRows();
  this.columnLimit = matrixSchema.getColumns();
  this.remainingRows = rowLimit;
  assert(columnLimit==columnPipeInput.length);
  this.colSizeOf = Pipe.sizeOf(columnPipeInput[0], matrixSchema.columnId);
  this.matrixSize = Pipe.sizeOf(matrixPipeOutput, matrixSchema.rowId);
  
}
origin: oci-pronghorn/Pronghorn

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;
}
origin: oci-pronghorn/Pronghorn

            splitterPipes[--splitterPipesCount] = pipe,
            outputs, 
            resultSchema, leftSchema, rightSchema.getRows(), rightSchema.getColumns(), rightSchema.type);
return splitterPipesCount;
origin: oci-pronghorn/Pronghorn

PipeConfig<RowSchema<M>> rowConfig = new PipeConfig<RowSchema<M>>(rs, schema.getRows());		
PipeConfig<ColumnSchema<M>> columnConfig = new PipeConfig<ColumnSchema<M>>(cs, 2);
origin: oci-pronghorn/Pronghorn

PipeConfig<RowSchema<M>> rowConfig = new PipeConfig<RowSchema<M>>(rs, schema.getRows());		
PipeConfig<ColumnSchema<M>> columnConfig = new PipeConfig<ColumnSchema<M>>(cs, 2);
for(int c=0;c<schema.getRows();c++) {
  while (!Pipe.hasRoomForWrite(inputRows)) {
    Thread.yield();
origin: oci-pronghorn/Pronghorn

assertTrue(resultSchema.getRows()==leftRows);
assertTrue(resultSchema.getColumns()==rightColumns);
assertTrue(leftSchema.getRows()==leftRows);
assertTrue(leftSchema.getColumns()==leftColumns);
assertTrue(rightSchema.getRows()==rightRows);
assertTrue(rightSchema.getColumns()==rightColumns);
Pipe<RowSchema<M>> right = new Pipe<RowSchema<M>>(new PipeConfig<RowSchema<M>>(rightRowSchema, rightRows));
Pipe<RowSchema<M>> result = new Pipe<RowSchema<M>>(new PipeConfig<RowSchema<M>>(rowResultSchema, resultSchema.getRows())); //NOTE: reqires 2 or JSON will not write out !!
origin: oci-pronghorn/Pronghorn

assertTrue(resultSchema.getRows()==leftRows);
assertTrue(resultSchema.getColumns()==rightColumns);
assertTrue(leftSchema.getRows()==leftRows);
assertTrue(leftSchema.getColumns()==leftColumns);
assertTrue(rightSchema.getRows()==rightRows);
assertTrue(rightSchema.getColumns()==rightColumns);
Pipe<RowSchema<M>> result = new Pipe<RowSchema<M>>(new PipeConfig<RowSchema<M>>(rowResultSchema, resultSchema.getRows())); //NOTE: reqires 2 or JSON will not write out !!
Pipe<DecimalSchema<M>> result2 = new Pipe<DecimalSchema<M>>(new PipeConfig<DecimalSchema<M>>(result2Schema, resultSchema.getRows())); //NOTE: reqires 2 or JSON will not write out !!
com.ociweb.pronghorn.stage.mathMatrixSchemagetRows

Popular methods of MatrixSchema

  • getColumns
  • <init>

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • JFrame (javax.swing)
  • JPanel (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now