Tabnine Logo
StorageLocationConfig.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.druid.segment.loading.StorageLocationConfig
constructor

Best Java code snippets using org.apache.druid.segment.loading.StorageLocationConfig.<init> (Showing top 8 results out of 315)

origin: apache/incubator-druid

 public SegmentLoader manufacturate(File storageDir)
 {
  return loader.withConfig(
    new SegmentLoaderConfig().withLocations(Collections.singletonList(new StorageLocationConfig().setPath(storageDir)))
  );
 }
}
origin: apache/incubator-druid

 @Override
 public List<StorageLocationConfig> getLocations()
 {
  return Collections.singletonList(
    new StorageLocationConfig().setPath(cacheDir)
  );
 }
},
origin: apache/incubator-druid

final StorageLocationConfig locationConfig = new StorageLocationConfig();
final File localStorageFolder = tmpFolder.newFolder("local_storage_folder");
locationConfig.setMaxSize(1000000000L);
locations.add(locationConfig);
final StorageLocationConfig locationConfig2 = new StorageLocationConfig();
final File localStorageFolder2 = tmpFolder.newFolder("local_storage_folder2");
origin: apache/incubator-druid

final StorageLocationConfig locationConfig = new StorageLocationConfig();
final File localStorageFolder = tmpFolder.newFolder("local_storage_folder");
localStorageFolder.setWritable(true);
locationConfig.setMaxSize(10L);
locations.add(locationConfig);
final StorageLocationConfig locationConfig2 = new StorageLocationConfig();
final File localStorageFolder2 = tmpFolder.newFolder("local_storage_folder2");
localStorageFolder2.setWritable(true);
origin: apache/incubator-druid

@Before
public void setUp() throws Exception
{
 EmittingLogger.registerEmitter(new NoopServiceEmitter());
 localSegmentCacheFolder = tmpFolder.newFolder("segment_cache_folder");
 final List<StorageLocationConfig> locations = new ArrayList<>();
 final StorageLocationConfig locationConfig = new StorageLocationConfig();
 locationConfig.setPath(localSegmentCacheFolder);
 locationConfig.setMaxSize(10000000000L);
 locations.add(locationConfig);
 manager = new SegmentLoaderLocalCacheManager(
   TestHelper.getTestIndexIO(),
   new SegmentLoaderConfig().withLocations(locations),
   jsonMapper
 );
}
origin: apache/incubator-druid

final StorageLocationConfig locationConfig = new StorageLocationConfig();
final File localStorageFolder = tmpFolder.newFolder("local_storage_folder");
locationConfig.setMaxSize(1000000000L);
locations.add(locationConfig);
final StorageLocationConfig locationConfig2 = new StorageLocationConfig();
final File localStorageFolder2 = tmpFolder.newFolder("local_storage_folder2");
locationConfig2.setPath(localStorageFolder2);
origin: apache/incubator-druid

final StorageLocationConfig locationConfig = new StorageLocationConfig();
locationConfig.setPath(localStorageFolder);
locationConfig.setMaxSize(10000000000L);
locations.add(locationConfig);
final StorageLocationConfig locationConfig2 = new StorageLocationConfig();
final File localStorageFolder2 = tmpFolder.newFolder("local_storage_folder2");
locationConfig2.setPath(localStorageFolder2);
origin: org.apache.druid/druid-indexing-service

 public SegmentLoader manufacturate(File storageDir)
 {
  return loader.withConfig(
    new SegmentLoaderConfig().withLocations(Collections.singletonList(new StorageLocationConfig().setPath(storageDir)))
  );
 }
}
org.apache.druid.segment.loadingStorageLocationConfig<init>

Popular methods of StorageLocationConfig

  • setPath
  • getFreeSpacePercent
  • getMaxSize
  • getPath
  • setMaxSize

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now