org.apache.hadoop.hive.ql.exec
Class DefaultFetchFormatter<T>

java.lang.Object
  extended by org.apache.hadoop.hive.ql.exec.DefaultFetchFormatter<T>
All Implemented Interfaces:
Closeable, FetchFormatter<String>

public class DefaultFetchFormatter<T>
extends Object
implements FetchFormatter<String>

serialize row by user specified serde and call toString() to make string type result


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.ql.exec.FetchFormatter
FetchFormatter.ThriftFormatter
 
Constructor Summary
DefaultFetchFormatter()
           
 
Method Summary
 void close()
           
 String convert(Object row, ObjectInspector rowOI)
           
 void initialize(org.apache.hadoop.conf.Configuration hconf, Properties props)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFetchFormatter

public DefaultFetchFormatter()
Method Detail

initialize

public void initialize(org.apache.hadoop.conf.Configuration hconf,
                       Properties props)
                throws HiveException
Specified by:
initialize in interface FetchFormatter<String>
Throws:
HiveException

convert

public String convert(Object row,
                      ObjectInspector rowOI)
               throws Exception
Specified by:
convert in interface FetchFormatter<String>
Throws:
Exception

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2014 The Apache Software Foundation. All rights reserved.