Tabnine Logo
CachingOrcDataSource$RegionFinder.getRangeFor
Code IndexAdd Tabnine to your IDE (free)

How to use
getRangeFor
method
in
io.prestosql.orc.CachingOrcDataSource$RegionFinder

Best Java code snippets using io.prestosql.orc.CachingOrcDataSource$RegionFinder.getRangeFor (Showing top 2 results out of 315)

origin: io.prestosql/presto-orc

@VisibleForTesting
void readCacheAt(long offset)
    throws IOException
{
  DiskRange newCacheRange = regionFinder.getRangeFor(offset);
  cachePosition = newCacheRange.getOffset();
  cacheLength = newCacheRange.getLength();
  if (cache.length < cacheLength) {
    cache = new byte[cacheLength];
  }
  dataSource.readFully(newCacheRange.getOffset(), cache, 0, cacheLength);
}
origin: prestosql/presto

@VisibleForTesting
void readCacheAt(long offset)
    throws IOException
{
  DiskRange newCacheRange = regionFinder.getRangeFor(offset);
  cachePosition = newCacheRange.getOffset();
  cacheLength = newCacheRange.getLength();
  if (cache.length < cacheLength) {
    cache = new byte[cacheLength];
  }
  dataSource.readFully(newCacheRange.getOffset(), cache, 0, cacheLength);
}
io.prestosql.orcCachingOrcDataSource$RegionFindergetRangeFor

Popular methods of CachingOrcDataSource$RegionFinder

    Popular in Java

    • Making http requests using okhttp
    • getResourceAsStream (ClassLoader)
    • onCreateOptionsMenu (Activity)
    • notifyDataSetChanged (ArrayAdapter)
    • VirtualMachine (com.sun.tools.attach)
      A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
    • InetAddress (java.net)
      An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
    • BitSet (java.util)
      The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
    • Queue (java.util)
      A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
    • Semaphore (java.util.concurrent)
      A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
    • Pattern (java.util.regex)
      Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
    • Best plugins for Eclipse
    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