org.apache.hadoop.hive.serde2.lazy
Class LazyDate

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.lazy.LazyObjectBase
      extended by org.apache.hadoop.hive.serde2.lazy.LazyObject<OI>
          extended by org.apache.hadoop.hive.serde2.lazy.LazyPrimitive<LazyDateObjectInspector,DateWritable>
              extended by org.apache.hadoop.hive.serde2.lazy.LazyDate

public class LazyDate
extends LazyPrimitive<LazyDateObjectInspector,DateWritable>

LazyDate. Serializes and deserializes a Date in the SQL date format YYYY-MM-DD


Constructor Summary
LazyDate(LazyDate copy)
           
LazyDate(LazyDateObjectInspector oi)
           
 
Method Summary
 void init(ByteArrayRef bytes, int start, int length)
          Initializes LazyDate object by interpreting the input bytes as a SQL date string.
static void writeUTF8(OutputStream out, DateWritable d)
          Writes a Date in SQL date format to the output stream.
 
Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyPrimitive
equals, getObject, getWritableObject, hashCode, logExceptionMessage, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyDate

public LazyDate(LazyDateObjectInspector oi)

LazyDate

public LazyDate(LazyDate copy)
Method Detail

init

public void init(ByteArrayRef bytes,
                 int start,
                 int length)
Initializes LazyDate object by interpreting the input bytes as a SQL date string.

Specified by:
init in class LazyObjectBase
Parameters:
bytes -
start -
length -
See Also:
ByteArrayRef

writeUTF8

public static void writeUTF8(OutputStream out,
                             DateWritable d)
                      throws IOException
Writes a Date in SQL date format to the output stream.

Parameters:
out - The output stream
i - The Date to write
Throws:
IOException


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