@Test(expected = IllegalArgumentException.class) public void testGetCacheLocationForBlanks() { Path cacheRootDir = new Path(""); String cacheId = ""; CacheRecordType cacheRecordType = CacheRecordType.text; DocumentTextCacheStorageUtils.getCacheLocation(cacheRootDir, cacheId, cacheRecordType); }
public static Path getCacheLocation(Path cacheRootDir, String cacheId, CacheRecordType cacheRecordType) { Preconditions.checkNotNull(cacheRootDir, "cache root directory cannot be blank!"); Preconditions.checkArgument(StringUtils.isNotBlank(cacheId), "cache id cannot be blank!"); return new Path(cacheRootDir, new Path(cacheId, cacheRecordType.name())); }
DocumentTextCacheStorageUtils { public static Path getCacheLocation(Path cacheRootDir, String cacheId, CacheRecordType cacheRecordType) { Preconditions.checkNotNull(cacheRootDir, "cache root directory cannot be blank!"); Preconditions.checkArgument(StringUtils.isNotBlank(cacheId), "cache id cannot be blank!"); return new Path(cacheRootDir, new Path(cacheId, cacheRecordType.name())); } }
DocumentTextCacheStorageUtils { public static Path getCacheLocation(Path cacheRootDir, String cacheId, CacheRecordType cacheRecordType) { Preconditions.checkNotNull(cacheRootDir, "cache root directory cannot be blank!"); Preconditions.checkArgument(StringUtils.isNotBlank(cacheId), "cache id cannot be blank!"); return new Path(cacheRootDir, new Path(cacheId, cacheRecordType.name())); } private  DocumentTextCacheStorageUtils(); }
DocumentTextCacheStorageUtils { public static Path getCacheLocation(Path cacheRootDir, String cacheId, CacheRecordType cacheRecordType) { Preconditions.checkNotNull(cacheRootDir, "cache root directory cannot be blank!"); Preconditions.checkArgument(StringUtils.isNotBlank(cacheId), "cache id cannot be blank!"); return new Path(cacheRootDir, new Path(cacheId, cacheRecordType.name())); } private  DocumentTextCacheStorageUtils(); static Path getCacheLocation(Path cacheRootDir, String cacheId, CacheRecordType cacheRecordType); static JavaRDD<T> getRddOrEmpty(JavaSparkContext sc, SparkAvroLoader avroLoader,
            Path cacheRootDir, String existingCacheId, CacheRecordType cacheRecordType, Class<T> avroRecordClass); static void storeInCache(SparkAvroSaver avroSaver, JavaRDD<DocumentText> toBeStoredEntities, JavaRDD<Fault> toBeStoredFaults, 
            Path cacheRootDir, LockManager lockManager, CacheMetadataManagingProcess cacheManager, 
            Configuration hadoopConf, int numberOfEmittedFiles); }
DocumentTextCacheStorageUtils { public static Path getCacheLocation(Path cacheRootDir, String cacheId, CacheRecordType cacheRecordType) { Preconditions.checkNotNull(cacheRootDir, "cache root directory cannot be blank!"); Preconditions.checkArgument(StringUtils.isNotBlank(cacheId), "cache id cannot be blank!"); return new Path(cacheRootDir, new Path(cacheId, cacheRecordType.name())); } private  DocumentTextCacheStorageUtils(); static Path getCacheLocation(Path cacheRootDir, String cacheId, CacheRecordType cacheRecordType); static JavaRDD<T> getRddOrEmpty(JavaSparkContext sc, SparkAvroLoader avroLoader,
            Path cacheRootDir, String existingCacheId, CacheRecordType cacheRecordType, Class<T> avroRecordClass); static void storeInCache(SparkAvroSaver avroSaver, JavaRDD<DocumentText> toBeStoredEntities, JavaRDD<Fault> toBeStoredFaults, 
            Path cacheRootDir, LockManager lockManager, CacheMetadataManagingProcess cacheManager, 
            Configuration hadoopConf, int numberOfEmittedFiles);  }