Package com.cloudera.cdk.data.spi.MarkerRange

Examples of com.cloudera.cdk.data.spi.MarkerRange.Boundary


    comparator = new MarkerComparator(strategy);
  }

  @Test
  public void testInclusiveLowerBound() {
    Boundary bound = new Boundary(comparator, OCT, true);
    Assert.assertFalse(bound.isLessThan(YEAR));
    Assert.assertFalse(bound.isLessThan(SEPT));
    Assert.assertFalse(bound.isLessThan(SEPT_30));
    Assert.assertTrue(bound.isLessThan(OCT_12));
    Assert.assertTrue(bound.isLessThan(OCT));
    Assert.assertTrue(bound.isLessThan(NOV_1));
    Assert.assertTrue(bound.isLessThan(NOV));
  }
View Full Code Here


    Assert.assertTrue(bound.isLessThan(NOV));
  }

  @Test
  public void testInclusiveUpperBound() {
    Boundary bound = new Boundary(comparator, OCT, true);
    Assert.assertFalse(bound.isGreaterThan(YEAR));
    Assert.assertTrue(bound.isGreaterThan(SEPT));
    Assert.assertTrue(bound.isGreaterThan(SEPT_30));
    Assert.assertTrue(bound.isGreaterThan(OCT_12));
    Assert.assertTrue(bound.isGreaterThan(OCT));
    Assert.assertFalse(bound.isGreaterThan(NOV_1));
    Assert.assertFalse(bound.isGreaterThan(NOV));
  }
View Full Code Here

    Assert.assertFalse(bound.isGreaterThan(NOV));
  }

  @Test
  public void testExclusiveLowerBound() {
    Boundary bound = new Boundary(comparator, OCT, false);
    Assert.assertFalse(bound.isLessThan(YEAR));
    Assert.assertFalse(bound.isLessThan(SEPT));
    Assert.assertFalse(bound.isLessThan(SEPT_30));
    Assert.assertFalse(bound.isLessThan(OCT_12));
    Assert.assertFalse(bound.isLessThan(OCT));
    Assert.assertTrue(bound.isLessThan(NOV_1));
    Assert.assertTrue(bound.isLessThan(NOV));
  }
View Full Code Here

    Assert.assertTrue(bound.isLessThan(NOV));
  }

  @Test
  public void testExclusiveUpperBound() {
    Boundary bound = new Boundary(comparator, OCT, false);
    Assert.assertFalse(bound.isGreaterThan(YEAR));
    Assert.assertTrue(bound.isGreaterThan(SEPT));
    Assert.assertTrue(bound.isGreaterThan(SEPT_30));
    Assert.assertFalse(bound.isGreaterThan(OCT_12));
    Assert.assertFalse(bound.isGreaterThan(OCT));
    Assert.assertFalse(bound.isGreaterThan(NOV_1));
    Assert.assertFalse(bound.isGreaterThan(NOV));
  }
View Full Code Here

    Assert.assertFalse(bound.isGreaterThan(NOV_1));
    Assert.assertFalse(bound.isGreaterThan(NOV));
  }

  public void testUnbounded() {
    Boundary bound = Boundary.UNBOUNDED;
    Assert.assertTrue(bound.isGreaterThan(YEAR));
    Assert.assertTrue(bound.isGreaterThan(SEPT));
    Assert.assertTrue(bound.isGreaterThan(SEPT_30));
    Assert.assertTrue(bound.isGreaterThan(OCT_12));
    Assert.assertTrue(bound.isGreaterThan(OCT));
    Assert.assertTrue(bound.isGreaterThan(NOV_1));
    Assert.assertTrue(bound.isGreaterThan(NOV));
    Assert.assertTrue(bound.isLessThan(YEAR));
    Assert.assertTrue(bound.isLessThan(SEPT));
    Assert.assertTrue(bound.isLessThan(SEPT_30));
    Assert.assertTrue(bound.isLessThan(OCT_12));
    Assert.assertTrue(bound.isLessThan(OCT));
    Assert.assertTrue(bound.isLessThan(NOV_1));
    Assert.assertTrue(bound.isLessThan(NOV));
  }
View Full Code Here

TOP

Related Classes of com.cloudera.cdk.data.spi.MarkerRange.Boundary

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.