org.apache.hadoop.hive.serde2.lazy
Class LazyDate
java.lang.Object
org.apache.hadoop.hive.serde2.lazy.LazyObjectBase
org.apache.hadoop.hive.serde2.lazy.LazyObject<OI>
org.apache.hadoop.hive.serde2.lazy.LazyPrimitive<LazyDateObjectInspector,DateWritable>
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
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. |
LazyDate
public LazyDate(LazyDateObjectInspector oi)
LazyDate
public LazyDate(LazyDate copy)
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 streami
- The Date to write
- Throws:
IOException
Copyright © 2014 The Apache Software Foundation. All rights reserved.