package org.ds.chronos.aws;

import org.ds.chronos.api.Chronicle;
import org.ds.chronos.api.PartitionPeriod;
import org.ds.chronos.api.PartitionedChronicle;

import com.amazonaws.services.s3.AmazonS3Client;

public class S3ParitionedChronicle extends PartitionedChronicle {

	final AmazonS3Client client;
	final String bucket;

	public S3ParitionedChronicle(AmazonS3Client client, String bucket, String keyPrefix, PartitionPeriod period) {
		super(keyPrefix, period);
		this.client = client;
		this.bucket = bucket;
	}

	@Override
  protected Chronicle getPartition(String key) {
	  return new S3Chronicle(client, bucket, key);
  }

}

@@ -319,16 +319,37 @@
  bucket;
+%0A%09final boolean gzip;
 %0A%0A%09publi
@@ -454,16 +454,201 @@
 riod) %7B%0A
+%09%09this(client, bucket, keyPrefix, period, false);%0A%09%7D%0A%0A%09public S3ParitionedChronicle(AmazonS3Client client, String bucket, String keyPrefix, PartitionPeriod period,%0A%09    boolean gzip) %7B%0A
 %09%09super(
@@ -715,16 +715,36 @@
 bucket;%0A
+%09%09this.gzip = gzip;%0A
 %09%7D%0A%0A%09@Ov
@@ -750,18 +750,17 @@
 verride%0A
-  
+%09
 protecte
@@ -799,18 +799,17 @@
 key) %7B%0A%09
-  
+%09
 return n
@@ -846,13 +846,18 @@
  key
+, gzip
 );%0A
-  
+%09
 %7D%0A%0A%7D

Add gzip constructor arg to partitioned s3 chronicle