Examples of DateParser


Examples of cascading.operation.text.DateParser

    // create an assembly to parse out the time field into a timestamp
    // then count the number of requests per second and per minute

    // apply a text parser to create a timestamp with 'second' granularity
    // declares field "ts"
    DateParser dateParser = new DateParser( new Fields( "ts" ), "dd/MMM/yyyy:HH:mm:ss Z" );
    Pipe tsPipe = new Each( "arrival rate", new Fields( "time" ), dateParser, Fields.RESULTS );

    // name the per second assembly and split on tsPipe
    Pipe tsCountPipe = new Pipe( "tsCount", tsPipe );
    tsCountPipe = new GroupBy( tsCountPipe, new Fields( "ts" ) );
View Full Code Here

Examples of cascading.operation.text.DateParser

    lhsPipe = new Each( lhsPipe, new Fields( "date" ), AssertionLevel.STRICT, new AssertExpression( "date instanceof Long", Object.class ) );

    Pipe rhsPipe = new Pipe( "rhs" );

    rhsPipe = new Each( rhsPipe, new Fields( "date" ), new DateParser( new Fields( "date", Long.class ), TestConstants.APACHE_DATE_FORMAT ), Fields.REPLACE );
    rhsPipe = new Each( rhsPipe, new Fields( "date" ), AssertionLevel.STRICT, new AssertExpression( "date instanceof Long", Object.class ) );

    Fields declared = lhsFields.append( Fields.mask( rhsFields, lhsFields ) );

    Pipe pipe = new CoGroup( lhsPipe, new Fields( "date" ), rhsPipe, new Fields( "date" ), declared );
View Full Code Here

Examples of cascading.operation.text.DateParser

    pipe = new Each( pipe, new Fields( "line" ), apacheCommonParser );

    pipe = new Each( pipe, new Insert( new Fields( "col" ), 1 ), Fields.ALL );

    // DateParser.APACHE declares: "ts"
    pipe = new Each( pipe, new Fields( "time" ), new DateParser( "dd/MMM/yyyy:HH:mm:ss Z" ), new Fields( "col", "status", "ts", "event", "ip", "size" ) );

    pipe = new GroupBy( pipe, new Fields( "col" ), new Fields( "does-not-exist" ) );

    pipe = new Each( pipe, new Identity() ); // let's force the stack to be exercised
View Full Code Here

Examples of com.caucho.quercus.lib.date.DateModule.DateParser

      _qDate.setHour(0);
      _qDate.setMinute(0);
      _qDate.setSecond(0);
    }

    DateParser parser = new DateParser(timeString, _qDate);
       
    long time = parser.parse();
   
    _qDate.setGMTTime(time);
  }
View Full Code Here

Examples of com.caucho.quercus.lib.date.DateModule.DateParser

    return DateModule.dateImpl(format, time, calendar);
  }
 
  public void modify(String modify)
  {
    DateParser parser = new DateParser(modify, _qDate);
   
    long time = parser.parse();
   
    setTime(time);
  }
View Full Code Here

Examples of com.caucho.quercus.lib.date.DateModule.DateParser

      _qDate.setHour(0);
      _qDate.setMinute(0);
      _qDate.setSecond(0);
    }

    DateParser parser = new DateParser(timeString, _qDate);
       
    long time = parser.parse();
   
    _qDate.setGMTTime(time);
  }
View Full Code Here

Examples of com.caucho.quercus.lib.date.DateModule.DateParser

    return DateModule.date(format, _qDate.getLocalTime() / 1000, _qDate);
  }
 
  public void modify(String modify)
  {
    DateParser parser = new DateParser(modify, _qDate);
   
    long time = parser.parse();
   
    setTime(time);
  }
View Full Code Here

Examples of com.caucho.quercus.lib.date.DateModule.DateParser

      _qDate.setHour(0);
      _qDate.setMinute(0);
      _qDate.setSecond(0);
    }

    DateParser parser = new DateParser(timeString, _qDate);
       
    long time = parser.parse();
   
    _qDate.setGMTTime(time);
  }
View Full Code Here

Examples of com.caucho.quercus.lib.date.DateModule.DateParser

    return DateModule.date(format, _qDate.getLocalTime() / 1000, _qDate);
  }
 
  public void modify(String modify)
  {
    DateParser parser = new DateParser(modify, _qDate);
   
    long time = parser.parse();
   
    setTime(time);
  }
View Full Code Here

Examples of com.caucho.quercus.lib.date.DateModule.DateParser

      _qDate.setHour(0);
      _qDate.setMinute(0);
      _qDate.setSecond(0);
    }

    DateParser parser = new DateParser(timeString, _qDate);
       
    long time = parser.parse();
   
    _qDate.setGMTTime(time);
  }
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.