Package org.apache.hadoop.fs.shell.find

Examples of org.apache.hadoop.fs.shell.find.Mtime$Mmin


    fiveDaysPlus = new PathData("fiveDaysPlus", conf);
  }

  @Test
  public void testExact() throws IOException {
    Mtime mtime = new Mtime();
    addArgument(mtime, "5");
   
    FindOptions options = new FindOptions();
    options.setStartTime(NOW);
    mtime.initialise(options);
   
    assertEquals(Result.FAIL, mtime.apply(fourDays));
    assertEquals(Result.FAIL, mtime.apply(fiveDaysMinus));
    assertEquals(Result.PASS, mtime.apply(fiveDays));
    assertEquals(Result.PASS, mtime.apply(fiveDaysPlus));
    assertEquals(Result.FAIL, mtime.apply(sixDays));
  }
View Full Code Here


    assertEquals(Result.FAIL, mtime.apply(sixDays));
  }
 
  @Test
  public void testGreater() throws IOException {
    Mtime mtime = new Mtime();
    addArgument(mtime, "+5");

    FindOptions options = new FindOptions();
    options.setStartTime(NOW);
    mtime.initialise(options);
    assertEquals(Result.FAIL, mtime.apply(fourDays));
    assertEquals(Result.FAIL, mtime.apply(fiveDaysMinus));
    assertEquals(Result.FAIL, mtime.apply(fiveDays));
    assertEquals(Result.FAIL, mtime.apply(fiveDaysPlus));
    assertEquals(Result.PASS, mtime.apply(sixDays));
  }
View Full Code Here

    assertEquals(Result.PASS, mtime.apply(sixDays));
  }

  @Test
  public void testLess() throws IOException {
    Mtime mtime = new Mtime();
    addArgument(mtime, "-5");
   
    FindOptions options = new FindOptions();
    options.setStartTime(NOW);
    mtime.initialise(options);
    assertEquals(Result.PASS, mtime.apply(fourDays));
    assertEquals(Result.PASS, mtime.apply(fiveDaysMinus));
    assertEquals(Result.FAIL, mtime.apply(fiveDays));
    assertEquals(Result.FAIL, mtime.apply(fiveDaysPlus));
    assertEquals(Result.FAIL, mtime.apply(sixDays));
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.fs.shell.find.Mtime$Mmin

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.