incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [2/6] git commit: Code formatting.
Date Tue, 17 Mar 2015 13:14:32 GMT
Code formatting.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/5ea22175
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/5ea22175
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/5ea22175

Branch: refs/heads/master
Commit: 5ea22175d723e5518ff8020574835c38a2449276
Parents: 1a86c40
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Mon Mar 16 21:37:47 2015 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Mon Mar 16 21:37:47 2015 -0400

----------------------------------------------------------------------
 .../store/BlockCacheDirectoryFactoryV2.java     | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/5ea22175/blur-store/src/main/java/org/apache/blur/store/BlockCacheDirectoryFactoryV2.java
----------------------------------------------------------------------
diff --git a/blur-store/src/main/java/org/apache/blur/store/BlockCacheDirectoryFactoryV2.java
b/blur-store/src/main/java/org/apache/blur/store/BlockCacheDirectoryFactoryV2.java
index 265226e..b8f16e9 100644
--- a/blur-store/src/main/java/org/apache/blur/store/BlockCacheDirectoryFactoryV2.java
+++ b/blur-store/src/main/java/org/apache/blur/store/BlockCacheDirectoryFactoryV2.java
@@ -66,7 +66,7 @@ public class BlockCacheDirectoryFactoryV2 extends BlockCacheDirectoryFactory
{
     final int cacheBlockSizeInt = configuration.getInt(BLUR_SHARD_BLOCK_CACHE_V2_CACHE_BLOCK_SIZE,
8192);
     LOG.info("{0}={1}", BLUR_SHARD_BLOCK_CACHE_V2_CACHE_BLOCK_SIZE, cacheBlockSizeInt);
 
-    final Map<String,Integer> cacheBlockSizeMap = new HashMap<String, Integer>();
+    final Map<String, Integer> cacheBlockSizeMap = new HashMap<String, Integer>();
     Map<String, String> properties = configuration.getProperties();
     for (Entry<String, String> prop : properties.entrySet()) {
       String key = prop.getKey();
@@ -77,7 +77,7 @@ public class BlockCacheDirectoryFactoryV2 extends BlockCacheDirectoryFactory
{
       if (key.startsWith(BLUR_SHARD_BLOCK_CACHE_V2_CACHE_BLOCK_SIZE_PREFIX)) {
         int cacheBlockSizeForFile = Integer.parseInt(value);
         String fieldType = key.substring(BLUR_SHARD_BLOCK_CACHE_V2_CACHE_BLOCK_SIZE_PREFIX.length());
-        
+
         cacheBlockSizeMap.put(fieldType, cacheBlockSizeForFile);
         LOG.info("{0}={1} for file type [{2}]", key, cacheBlockSizeForFile, fieldType);
       }
@@ -86,28 +86,27 @@ public class BlockCacheDirectoryFactoryV2 extends BlockCacheDirectoryFactory
{
     final STORE store = STORE.valueOf(configuration.get(BLUR_SHARD_BLOCK_CACHE_V2_STORE,
OFF_HEAP));
     LOG.info("{0}={1}", BLUR_SHARD_BLOCK_CACHE_V2_STORE, store);
 
-    final Set<String> cachingFileExtensionsForRead = getSet(configuration.get(
-        BLUR_SHARD_BLOCK_CACHE_V2_READ_CACHE_EXT, DEFAULT_VALUE));
+    final Set<String> cachingFileExtensionsForRead = getSet(configuration.get(BLUR_SHARD_BLOCK_CACHE_V2_READ_CACHE_EXT,
+        DEFAULT_VALUE));
     LOG.info("{0}={1}", BLUR_SHARD_BLOCK_CACHE_V2_READ_CACHE_EXT, cachingFileExtensionsForRead);
-    
+
     final Set<String> nonCachingFileExtensionsForRead = getSet(configuration.get(
         BLUR_SHARD_BLOCK_CACHE_V2_READ_NOCACHE_EXT, DEFAULT_VALUE));
     LOG.info("{0}={1}", BLUR_SHARD_BLOCK_CACHE_V2_READ_NOCACHE_EXT, nonCachingFileExtensionsForRead);
-    
+
     final boolean defaultReadCaching = configuration.getBoolean(BLUR_SHARD_BLOCK_CACHE_V2_READ_DEFAULT,
true);
     LOG.info("{0}={1}", BLUR_SHARD_BLOCK_CACHE_V2_READ_DEFAULT, defaultReadCaching);
 
     final Set<String> cachingFileExtensionsForWrite = getSet(configuration.get(
         BLUR_SHARD_BLOCK_CACHE_V2_WRITE_CACHE_EXT, DEFAULT_VALUE));
     LOG.info("{0}={1}", BLUR_SHARD_BLOCK_CACHE_V2_WRITE_CACHE_EXT, cachingFileExtensionsForWrite);
-    
+
     final Set<String> nonCachingFileExtensionsForWrite = getSet(configuration.get(
         BLUR_SHARD_BLOCK_CACHE_V2_WRITE_NOCACHE_EXT, DEFAULT_VALUE));
     LOG.info("{0}={1}", BLUR_SHARD_BLOCK_CACHE_V2_WRITE_NOCACHE_EXT, nonCachingFileExtensionsForWrite);
-    
+
     final boolean defaultWriteCaching = configuration.getBoolean(BLUR_SHARD_BLOCK_CACHE_V2_WRITE_DEFAULT,
true);
     LOG.info("{0}={1}", BLUR_SHARD_BLOCK_CACHE_V2_WRITE_DEFAULT, defaultWriteCaching);
-    
 
     Size fileBufferSize = new Size() {
       @Override
@@ -166,7 +165,8 @@ public class BlockCacheDirectoryFactoryV2 extends BlockCacheDirectoryFactory
{
       }
     };
 
-    BaseCache baseCache = new BaseCache(totalNumberOfBytes, fileBufferSize, cacheBlockSize,
readFilter, writeFilter, quiet, store);
+    BaseCache baseCache = new BaseCache(totalNumberOfBytes, fileBufferSize, cacheBlockSize,
readFilter, writeFilter,
+        quiet, store);
     CachePoolStrategy cachePoolStrategy = new SingleCachePoolStrategy(baseCache);
     _cache = new PooledCache(cachePoolStrategy);
   }


Mime
View raw message