Package mil.nga.giat.geowave.store.query

Examples of mil.nga.giat.geowave.store.query.TemporalConstraints


  public Object visit(During during, Object data) {
    return btime(during.getExpression2().accept(this, data));
  }

  public Object visit(EndedBy endedBy, Object data) {
    TemporalConstraints leftResult = (TemporalConstraints) endedBy
        .getExpression1().accept(this, data);

    TemporalConstraints rightResult = (TemporalConstraints) endedBy
        .getExpression2().accept(this, data);

    if (leftResult.isEmpty())
      return toSet(new TemporalRange(TemporalRange.START_TIME,
          rightResult.getMaxOr(TemporalRange.END_TIME)));
    if (rightResult.isEmpty())
      return toSet(new TemporalRange(TemporalRange.START_TIME,
          leftResult.getMaxOr(TemporalRange.END_TIME)));

    // Looks like infinity. This case occurs if both sides are parameters or
    // functions.
View Full Code Here


  }

  @Override
  protected Iterator<SimpleFeature> openIterator() {
    Geometry jtsBounds;
    TemporalConstraints timeBounds;

    try {
      ReferencedEnvelope referencedEnvelope = this.getEnvelope(query);
      jtsBounds = getBBox(
          query,
View Full Code Here

  private TemporalConstraints getBoundedTime(
      final Query query ) {
    if (query == null) {
      return null;
    }
    final TemporalConstraints bbox = (TemporalConstraints) query.getFilter().accept(
        ExtractTimeFilterVisitor.TIME_VISITOR,
        null);
    return bbox.isEmpty() ? null : bbox;
  }
View Full Code Here

    // functions.
    return infinity();
  }

  public Object visit(Ends ends, Object data) {
    TemporalConstraints leftResult = (TemporalConstraints) ends
        .getExpression1().accept(this, data);

    TemporalConstraints rightResult = (TemporalConstraints) ends
        .getExpression2().accept(this, data);

    if (leftResult.isEmpty())
      return toSet(new TemporalRange(TemporalRange.START_TIME,
          rightResult.getMaxOr(TemporalRange.END_TIME)));
    if (rightResult.isEmpty())
      return toSet(new TemporalRange(TemporalRange.START_TIME,
          leftResult.getMaxOr(TemporalRange.END_TIME)));

    // Looks like infinity. This case occurs if both sides are parameters or
    // functions.
View Full Code Here

    // functions.
    return infinity();
  }

  public Object visit(Meets meets, Object data) {
    TemporalConstraints leftResult = (TemporalConstraints) meets
        .getExpression1().accept(this, data);

    TemporalConstraints rightResult = (TemporalConstraints) meets
        .getExpression2().accept(this, data);

    if (leftResult.isEmpty())
      return toSet(new TemporalRange(TemporalRange.START_TIME,
          rightResult.getMinOr(TemporalRange.END_TIME)));
    if (rightResult.isEmpty())
      return toSet(new TemporalRange(
          leftResult.getMaxOr(TemporalRange.START_TIME),
          TemporalRange.END_TIME));

    // Looks like infinity. This case occurs if both sides are parameters or
    // functions.
    return toSet(new TemporalRange(
        leftResult.getMinOr(TemporalRange.START_TIME),
        rightResult.getMaxOr(TemporalRange.END_TIME)));
  }
View Full Code Here

  public Object visit(MetBy metBy, Object data) {
    return merge(metBy.getExpression1(), metBy.getExpression2(), data);
  }

  public Object visit(OverlappedBy overlappedBy, Object data) {
    TemporalConstraints side2 = btime(overlappedBy.getExpression2().accept(
        this, data));
    if (!side2.isEmpty())
      return side2;
    return this.infinity();
  }
View Full Code Here

      return side2;
    return this.infinity();
  }

  public Object visit(TContains contains, Object data) {
    TemporalConstraints leftResult = (TemporalConstraints) contains
        .getExpression1().accept(this, data);

    if (!leftResult.isEmpty())
      return leftResult;
    return this.infinity();
  }
View Full Code Here

      return leftResult;
    return this.infinity();
  }

  public Object visit(TEquals equals, Object data) {
    TemporalConstraints leftResult = (TemporalConstraints) equals
        .getExpression1().accept(this, data);
    TemporalConstraints rightResult = (TemporalConstraints) equals
        .getExpression2().accept(this, data);

    if (leftResult.isEmpty())
      return leftResult;
    if (rightResult.isEmpty())
      return this.infinity();
    return rightResult;
  }
View Full Code Here

  public Object visit(Id filter, Object data) {
    return this.infinity();
  }

  public Object visit(PropertyIsBetween filter, Object data) {
    return new TemporalConstraints();
  }
View Full Code Here

  public Object visit(PropertyIsBetween filter, Object data) {
    return new TemporalConstraints();
  }

  public Object visit(PropertyIsEqualTo filter, Object data) {
    return new TemporalConstraints();
  }
View Full Code Here

TOP

Related Classes of mil.nga.giat.geowave.store.query.TemporalConstraints

Copyright © 2018 www.massapicom. 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.