Tabnine Logo
StorageLocationConfig.getFreeSpacePercent
Code IndexAdd Tabnine to your IDE (free)

How to use
getFreeSpacePercent
method
in
org.apache.druid.segment.loading.StorageLocationConfig

Best Java code snippets using org.apache.druid.segment.loading.StorageLocationConfig.getFreeSpacePercent (Showing top 2 results out of 315)

origin: apache/incubator-druid

@Inject
public SegmentLoaderLocalCacheManager(
  IndexIO indexIO,
  SegmentLoaderConfig config,
  @Json ObjectMapper mapper
)
{
 this.indexIO = indexIO;
 this.config = config;
 this.jsonMapper = mapper;
 this.locations = new ArrayList<>();
 for (StorageLocationConfig locationConfig : config.getLocations()) {
  locations.add(new StorageLocation(
    locationConfig.getPath(),
    locationConfig.getMaxSize(),
    locationConfig.getFreeSpacePercent()
  ));
 }
}
origin: org.apache.druid/druid-server

@Inject
public SegmentLoaderLocalCacheManager(
  IndexIO indexIO,
  SegmentLoaderConfig config,
  @Json ObjectMapper mapper
)
{
 this.indexIO = indexIO;
 this.config = config;
 this.jsonMapper = mapper;
 this.locations = Lists.newArrayList();
 for (StorageLocationConfig locationConfig : config.getLocations()) {
  locations.add(new StorageLocation(
    locationConfig.getPath(),
    locationConfig.getMaxSize(),
    locationConfig.getFreeSpacePercent()
  ));
 }
}
org.apache.druid.segment.loadingStorageLocationConfiggetFreeSpacePercent

Popular methods of StorageLocationConfig

  • <init>
  • setPath
  • getMaxSize
  • getPath
  • setMaxSize

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • Menu (java.awt)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Best IntelliJ plugins
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