Tabnine Logo
Container.set
Code IndexAdd Tabnine to your IDE (free)

How to use
set
method
in
org.apache.parquet.hadoop.mapred.Container

Best Java code snippets using org.apache.parquet.hadoop.mapred.Container.set (Showing top 4 results out of 315)

origin: org.lasersonlab.apache.parquet/parquet-hadoop

 @Override
 public boolean next(Void key, Container<V> value) throws IOException {
  if (eof) {
   return false;
  }
  if (firstRecord) { // key & value are already read.
   firstRecord = false;
   return true;
  }
  try {
   if (realReader.nextKeyValue()) {
    if (value != null) value.set(realReader.getCurrentValue());
    return true;
   }
  } catch (InterruptedException e) {
   throw new IOException(e);
  }
  eof = true; // strictly not required, just for consistency
  return false;
 }
}
origin: org.apache.parquet/parquet-hadoop

 @Override
 public boolean next(Void key, Container<V> value) throws IOException {
  if (eof) {
   return false;
  }
  if (firstRecord) { // key & value are already read.
   firstRecord = false;
   return true;
  }
  try {
   if (realReader.nextKeyValue()) {
    if (value != null) value.set(realReader.getCurrentValue());
    return true;
   }
  } catch (InterruptedException e) {
   throw new IOException(e);
  }
  eof = true; // strictly not required, just for consistency
  return false;
 }
}
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.mapredContainerset

Popular methods of Container

  • get
  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • String (java.lang)
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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