Examples of Projection


Examples of io.crate.planner.projection.Projection

                }
            }
            return null;
        }

        Projection firstProjection = node.projections().get(0);
        setInputStreamers(node.inputTypes(), firstProjection, context);
        setOutputStreamers(node.outputTypes(), node.inputTypes(), node.projections(), context);

        return null;
    }
View Full Code Here

Examples of lupos.engine.operators.singleinput.Projection

  }

  public static void main(final String[] args) {
    // The whole graph:
    final Operator wa = new Join();
    final Operator wb = new Projection();
    wa.setSucceedingOperator(new OperatorIDTuple(wb, 0));
    wb.setPrecedingOperator(wa);

    // Define left side of rule
    final Operator a = new Join();
    final Operator b = new Projection();
    a.setSucceedingOperator(new OperatorIDTuple(b, -1));
    b.setPrecedingOperator(a);
    final Map<BasicOperator, String> subGraphMap = new HashMap<BasicOperator, String>();
    subGraphMap.put(a, "a");
    subGraphMap.put(b, "b");

    final Map<String, BasicOperator> result = checkSubGraph(wa,
View Full Code Here

Examples of org.apache.hadoop.zebra.types.Projection

        Schema schema;
        colGroups = new ColumnGroup.Reader[numCGs];
        cgTuples = new Tuple[numCGs];
        // set default projection that contains everything
        schema = schemaFile.getLogical();
        projection = new Projection(schema);
        String storage = schemaFile.getStorageString();
        String comparator = schemaFile.getComparator();
        partition = new Partition(schema, projection, storage, comparator);
        for (int nx = 0; nx < numCGs; nx++) {
          if (!schemaFile.isCGDeleted(nx)) {
View Full Code Here

Examples of org.codehaus.jparsec.examples.sql.ast.Projection

    );
  }
 
  public void testProjection() {
    Parser<Projection> parser = RelationParser.projection(NUMBER);
    assertParser(parser, "1", new Projection(number(1), null));
    assertParser(parser, "1 id", new Projection(number(1), "id"));
    assertParser(parser, "1 as id", new Projection(number(1), "id"));
  }
View Full Code Here

Examples of org.geoscript.js.proj.Projection

            maxY = ((Number) maxYObj).doubleValue();
        }
        if (Double.isNaN(minX) || Double.isNaN(minY) || Double.isNaN(maxX) || Double.isNaN(maxY)) {
            throw new RuntimeException("Config must include minX, minY, maxX, and maxY values.");
        }
        Projection projection = null;
        Object projectionObj = obj.get("projection", obj);
        if (projectionObj instanceof Projection) {
            projection = (Projection) projectionObj;
        } else if (projectionObj instanceof String) {
            projection = new Projection((String) projectionObj);
        }
        CoordinateReferenceSystem crs = projection != null ? projection.unwrap() : null;
        refEnv = new ReferencedEnvelope(minX, maxX, minY, maxY, crs);
    }
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.Projection

        return markerLayer;
    }

    public LonLat createLonLat(double longitude, double latitude) {
        LonLat lonLat = new LonLat(longitude, latitude);
        lonLat.transform(new Projection("EPSG:4326").getProjectionCode(), map.getProjection());
        return lonLat;
    }
View Full Code Here

Examples of org.hibernate.criterion.Projection

    List<T> targetList = null;
    if (null == criteriaImpl.getProjection()) {
      criteria.setFirstResult((limit.getPageNo() - 1) * limit.getPageSize()).setMaxResults(
          limit.getPageSize());
      targetList = criteria.list();
      Projection projection = null;
      criteria.setFirstResult(0).setMaxResults(1);
      projection = Projections.rowCount();
      totalCount = ((Number) criteria.setProjection(projection).uniqueResult()).intValue();
    } else {
      List<T> list = criteria.list();
View Full Code Here

Examples of org.jboss.dna.graph.connector.federation.Projection

        // Create the projection for the system repository ...
        ProjectionParser projectionParser = ProjectionParser.getInstance();
        String rule = "/jcr:system => /jcr:system";
        Projection.Rule[] systemProjectionRules = projectionParser.rulesFromString(this.executionContext, rule);
        this.systemSourceProjection = new Projection(systemSourceName, systemWorkspaceName, true, systemProjectionRules);

        // Define the federated repository source. Use the same name as the repository, since this federated source
        // will not be in the connection factory ...
        this.federatedSource = new FederatedRepositorySource();
        this.federatedSource.setName("JCR " + repositorySourceName);
View Full Code Here

Examples of org.jrdf.query.expression.Projection

        return new SelectAnswerImpl(heading, result, System.currentTimeMillis() - timeStarted, hasProjected());
    }

    private LinkedHashSet<Attribute> getHeading(EvaluatedRelation relation) {
        if (hasProjected()) {
            Projection projection = (Projection) expression;
            return new LinkedHashSet<Attribute>(projection.getAttributes());
        } else {
            return new LinkedHashSet<Attribute>(relation.getSortedHeading());
        }
    }
View Full Code Here

Examples of org.opengis.referencing.operation.Projection

    public static MapProjection getMapProjection(final CoordinateReferenceSystem crs) {
        ProjectedCRS projectedCRS = CRS.getProjectedCRS(crs);
        if(projectedCRS == null)
            return null;
       
        Projection conversion = projectedCRS.getConversionFromBase();
        MathTransform mt = conversion.getMathTransform();
        return unrollProjection(mt);
    }
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.