@@ -0,0 +1,1242 @@
+/*%0A * Copyright (C) 2014-2016 LinkedIn Corp. All rights reserved.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22); you may not use%0A * this file except in compliance with the License. You may obtain a copy of the%0A * License at  http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software distributed%0A * under the License is distributed on an %22AS IS%22 BASIS, WITHOUT WARRANTIES OR%0A * CONDITIONS OF ANY KIND, either express or implied.%0A */%0A%0Apackage gobblin.publisher;%0A%0Aimport java.io.IOException;%0A%0Aimport org.apache.hadoop.fs.Path;%0A%0Aimport gobblin.configuration.State;%0Aimport gobblin.configuration.WorkUnitState;%0A%0A%0A/**%0A * Write output to %7Bfinaldir%7D/%7BcurrentTimestamp%7D%0A */%0Apublic class TimestampDataPublisher extends BaseDataPublisher %7B%0A%0A  private final String timestamp;%0A%0A  public TimestampDataPublisher(State state) throws IOException %7B%0A    super(state);%0A    timestamp = String.valueOf(System.currentTimeMillis());%0A  %7D%0A%0A  @Override%0A  protected Path getPublisherOutputDir(WorkUnitState workUnitState, int branchId) %7B%0A    Path outputDir = super.getPublisherOutputDir(workUnitState, branchId);%0A    outputDir = new Path(outputDir, timestamp);%0A    return outputDir;%0A  %7D%0A%7D%0A

Create publisher to split output by timestamp