Tabnine Logo
RecordReader.close
Code IndexAdd Tabnine to your IDE (free)

How to use
close
method
in
org.apache.hadoop.hive.ql.exec.RecordReader

Best Java code snippets using org.apache.hadoop.hive.ql.exec.RecordReader.close (Showing top 4 results out of 315)

origin: apache/hive

try {
 if (in != null) {
  in.close();
origin: apache/drill

try {
 if (in != null) {
  in.close();
origin: org.apache.hadoop.hive/hive-exec

 @Override
 public void run() {
  try {
   Writable row = in.createRow();
   while (true) {
    long bytes = in.next(row);
    if (bytes <= 0) {
     break;
    }
    proc.processLine(row);
   }
   LOG.info("StreamThread " + name + " done");
  } catch (Throwable th) {
   scriptError = th;
   LOG.warn("Exception in StreamThread.run(): " + th.getMessage() +
     "\nCause: " + th.getCause());
   LOG.warn(StringUtils.stringifyException(th));
  } finally {
   try {
    if (in != null) {
     in.close();
    }
    proc.close();
   } catch (Exception e) {
    LOG.warn(name + ": error in closing ..");
    LOG.warn(StringUtils.stringifyException(e));
   }
  }
 }
}
origin: com.facebook.presto.hive/hive-apache

try {
 if (in != null) {
  in.close();
org.apache.hadoop.hive.ql.execRecordReaderclose

Popular methods of RecordReader

  • createRow
  • initialize
  • next
    Returns the number of bytes that we consumed. -1 means end of stream.

Popular in Java

  • Making http post requests using okhttp
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top PhpStorm 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