Examples of columns()


Examples of io.crate.metadata.doc.DocTableInfo.columns()

        ensureGreen();

        DocTableInfo ti = (DocTableInfo) referenceInfos.getTableInfo(new TableIdent(null, "t1"));
        assertThat(ti.ident().name(), is("t1"));

        assertThat(ti.columns().size(), is(3));
        assertThat(ti.primaryKey().size(), is(1));
        assertThat(ti.primaryKey().get(0), is(new ColumnIdent("id")));
        assertThat(ti.clusteredBy(), is(new ColumnIdent("id")));

        Routing routing = ti.getRouting(WhereClause.MATCH_ALL);
View Full Code Here

Examples of io.crate.metadata.table.TableInfo.columns()

        CollectNode collectNode = new CollectNode("tablesCollect", routing);

        InformationSchemaInfo schemaInfo =  cluster().getInstance(InformationSchemaInfo.class);
        TableInfo tablesTableInfo = schemaInfo.getTableInfo("tables");
        List<Symbol> toCollect = new ArrayList<>();
        for (ReferenceInfo info : tablesTableInfo.columns()) {
            toCollect.add(new Reference(info));
        }
        Symbol tableNameRef = toCollect.get(1);

        FunctionImplementation eqImpl = functions.get(new FunctionIdent(EqOperator.NAME,
View Full Code Here

Examples of io.fabric8.utils.TablePrinter.columns()

        return tableResults(table);
    }

    protected TablePrinter podsAsTable(PodListSchema pods) {
        TablePrinter table = new TablePrinter();
        table.columns("id", "image(s)", "host", "labels", "status");
        List<PodSchema> items = pods.getItems();
        if (items == null) {
            items = Collections.EMPTY_LIST;
        }
        Filter<PodSchema> filter = KubernetesHelper.createPodFilter(filterText.getValue());
View Full Code Here

Examples of jcgp.backend.resources.Resources.columns()

   
    final Resources resources = gui.getExperiment().getResources();
    this.parent = parent;
   
    rows = resources.rows();
    columns = resources.columns();
   
    connectionLines = new ArrayList<Line>();
   
    content = new Pane();
    content.setId("content pane for genes");
View Full Code Here

Examples of jimm.datavision.source.DataSource.columns()

  while (iter.hasNext())
      tables.add(iter.next());
    }

    if (tables.isEmpty()) {
  for (iter = source.columns(); iter.hasNext(); )
      noTableCols.add(iter.next());
    }

    // Add nodes for tables and columns under tables
    for (iter = tables.iterator(); iter.hasNext(); )
View Full Code Here

Examples of net.fec.openrq.util.linearalgebra.matrix.ByteMatrix.columns()

        }

        ByteMatrix result = factory.createMatrix(rows(), matrix.columns());

        for (int i = 0; i < rows(); i++) {
            for (int j = 0; j < result.columns(); j++) {
                byte acc = 0;
                ByteVectorIterator it = nonZeroRowIterator(i);
                while (it.hasNext()) {
                    it.next();
                    final byte prod = aTimesB(it.get(), matrix.get(it.index(), j));
View Full Code Here

Examples of org.apache.mahout.math.matrix.DoubleMatrix2D.columns()

            {
                tdMatrix = vsmContext.termDocumentMatrix;
            }

            // Initial selection containing all columns, initial clustering
            final IntArrayList columns = new IntArrayList(tdMatrix.columns());
            for (int c = 0; c < tdMatrix.columns(); c++)
            {
                columns.add(c);
            }
            final List<IntArrayList> rawClusters = Lists.newArrayList();
View Full Code Here

Examples of org.apache.mahout.math.matrix.impl.DenseDoubleMatrix2D.columns()

            // Calculate similarity to centroids
            centroids.zMult(selected, similarities, 1, 0, true, false);

            // Assign documents to the nearest centroid
            for (int c = 0; c < similarities.columns(); c++)
            {
                int maxRow = 0;
                double max = similarities.get(0, c);
                for (int r = 1; r < similarities.rows(); r++)
                {
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.ShowInForm.columns()

            attr.addIdToRerenderOnAjaxEvent(ids[i]);


          if (annotation.type() == AttributeImplementationType.TEXTAREA || annotation.type() == AttributeImplementationType.FORMATTEDTEXTAREA)
          {
            if (annotation.columns() == 0)
              throw new MissingColumnsException(beanName, fields[j].getName());

            if (annotation.rows() == 0)
              throw new MissingRowsException(beanName, fields[j].getName());
View Full Code Here

Examples of org.boris.expr.ExprArray.columns()

            return 1;
        } else if (arg instanceof ExprArray) {
            int count = 0;
            ExprArray arr = (ExprArray) arg;
            int rows = arr.rows();
            int cols = arr.columns();
            for (int i = 0; i < rows; i++) {
                for (int j = 0; j < cols; j++) {
                    count += count(arr.get(i, j), any);
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.