You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@predictionio.apache.org by sh...@apache.org on 2017/07/07 02:01:22 UTC
incubator-predictionio git commit: [PIO-61] S3 Model Data Repository:
add default match case for optional parameters
Repository: incubator-predictionio
Updated Branches:
refs/heads/develop 2a4ecf3bc -> 8c9fff821
[PIO-61] S3 Model Data Repository: add default match case for optional parameters
Project: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/commit/8c9fff82
Tree: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/tree/8c9fff82
Diff: http://git-wip-us.apache.org/repos/asf/incubator-predictionio/diff/8c9fff82
Branch: refs/heads/develop
Commit: 8c9fff821c5394e5926ee6929e55a51afce71927
Parents: 2a4ecf3
Author: Shinsuke Sugaya <sh...@apache.org>
Authored: Fri Jul 7 10:58:43 2017 +0900
Committer: Shinsuke Sugaya <sh...@apache.org>
Committed: Fri Jul 7 11:00:29 2017 +0900
----------------------------------------------------------------------
.../org/apache/predictionio/data/storage/s3/StorageClient.scala | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-predictionio/blob/8c9fff82/storage/s3/src/main/scala/org/apache/predictionio/data/storage/s3/StorageClient.scala
----------------------------------------------------------------------
diff --git a/storage/s3/src/main/scala/org/apache/predictionio/data/storage/s3/StorageClient.scala b/storage/s3/src/main/scala/org/apache/predictionio/data/storage/s3/StorageClient.scala
index c37bf3d..d96b37d 100644
--- a/storage/s3/src/main/scala/org/apache/predictionio/data/storage/s3/StorageClient.scala
+++ b/storage/s3/src/main/scala/org/apache/predictionio/data/storage/s3/StorageClient.scala
@@ -36,9 +36,11 @@ class StorageClient(val config: StorageClientConfig) extends BaseStorageClient
case (Some(endpoint), Some(region)) =>
builder.withEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration(endpoint, region))
case (None, Some(region)) => builder.withRegion(region)
+ case _ =>
}
config.properties.get("DISABLE_CHUNKED_ENCODING") match {
case Some(x) if x.equalsIgnoreCase("true") => builder.disableChunkedEncoding()
+ case _ =>
}
builder.build()
}