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

How to use
org.apache.parquet.hadoop.mapred.Container
constructor

Best Java code snippets using org.apache.parquet.hadoop.mapred.Container.<init> (Showing top 2 results out of 315)

origin: org.apache.parquet/parquet-hadoop

public RecordReaderWrapper(
  InputSplit oldSplit, JobConf oldJobConf, Reporter reporter)
  throws IOException {
 splitLen = oldSplit.getLength();
 try {
  realReader = new ParquetRecordReader<V>(
    ParquetInputFormat.<V>getReadSupportInstance(oldJobConf),
    ParquetInputFormat.getFilter(oldJobConf));
  if (oldSplit instanceof ParquetInputSplitWrapper) {
   realReader.initialize(((ParquetInputSplitWrapper) oldSplit).realSplit, oldJobConf, reporter);
  } else if (oldSplit instanceof FileSplit) {
   realReader.initialize((FileSplit) oldSplit, oldJobConf, reporter);
  } else {
   throw new IllegalArgumentException(
     "Invalid split (not a FileSplit or ParquetInputSplitWrapper): " + oldSplit);
  }
  // read once to gain access to key and value objects
  if (realReader.nextKeyValue()) {
   firstRecord = true;
   valueContainer = new Container<V>();
   valueContainer.set(realReader.getCurrentValue());
  } else {
   eof = true;
  }
 } catch (InterruptedException e) {
  Thread.interrupted();
  throw new IOException(e);
 }
}
origin: org.lasersonlab.apache.parquet/parquet-hadoop

public RecordReaderWrapper(
  InputSplit oldSplit, JobConf oldJobConf, Reporter reporter)
  throws IOException {
 splitLen = oldSplit.getLength();
 try {
  realReader = new ParquetRecordReader<V>(
    ParquetInputFormat.<V>getReadSupportInstance(oldJobConf),
    ParquetInputFormat.getFilter(oldJobConf));
  if (oldSplit instanceof ParquetInputSplitWrapper) {
   realReader.initialize(((ParquetInputSplitWrapper) oldSplit).realSplit, oldJobConf, reporter);
  } else if (oldSplit instanceof FileSplit) {
   realReader.initialize((FileSplit) oldSplit, oldJobConf, reporter);
  } else {
   throw new IllegalArgumentException(
     "Invalid split (not a FileSplit or ParquetInputSplitWrapper): " + oldSplit);
  }
  // read once to gain access to key and value objects
  if (realReader.nextKeyValue()) {
   firstRecord = true;
   valueContainer = new Container<V>();
   valueContainer.set(realReader.getCurrentValue());
  } else {
   eof = true;
  }
 } catch (InterruptedException e) {
  Thread.interrupted();
  throw new IOException(e);
 }
}
org.apache.parquet.hadoop.mapredContainer<init>

Popular methods of Container

  • get
  • set

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Github Copilot alternatives
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