Codota Logo
OrcReader.<init>
Code IndexAdd Codota to your IDE (free)

How to use
io.prestosql.orc.OrcReader
constructor

Best Java code snippets using io.prestosql.orc.OrcReader.<init> (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(booleanNoNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, BOOLEAN),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(floatWithNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, REAL),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: prestosql/presto

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(floatWithNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, REAL),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: prestosql/presto

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(booleanWithNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, BOOLEAN),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: prestosql/presto

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(timestampNoNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, TIMESTAMP),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: prestosql/presto

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(decimalWithNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, DECIMAL_TYPE),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(tinyIntNoNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, TINYINT),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(decimalNoNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, DECIMAL_TYPE),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(varcharWithNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, VARCHAR),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(varcharNoNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, VARCHAR),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(doubleNoNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, DOUBLE),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(doubleWithNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, DOUBLE),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(tinyIntWithNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, TINYINT),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(booleanWithNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, BOOLEAN),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(timestampNoNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, TIMESTAMP),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(bigintWithNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, BIGINT),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(bigintNoNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, BIGINT),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(floatNoNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, REAL),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(decimalWithNullFile, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, DECIMAL_TYPE),
      OrcPredicate.TRUE,
      UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
origin: io.prestosql/presto-orc

private OrcRecordReader createRecordReader()
    throws IOException
{
  OrcDataSource dataSource = new FileOrcDataSource(dataPath, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), true);
  OrcReader orcReader = new OrcReader(dataSource, ORC, new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE), new DataSize(1, MEGABYTE));
  return orcReader.createRecordReader(
      ImmutableMap.of(0, DECIMAL_TYPE),
      OrcPredicate.TRUE,
      DateTimeZone.UTC, // arbitrary
      newSimpleAggregatedMemoryContext(),
      INITIAL_BATCH_SIZE);
}
io.prestosql.orcOrcReader<init>

Popular methods of OrcReader

  • createRecordReader
  • getColumnNames
  • getFooter
  • checkOrcVersion
    Check to see if this ORC file is from a future version and if so, warn the user that we may not be a
  • isValidHeaderMagic
    Does the file start with the ORC magic bytes?
  • validateFile
  • validateWrite
  • wrapWithCacheIfTiny

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JOptionPane (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now