public class LazyDate extends LazyPrimitive<LazyDateObjectInspector,DateWritable>
data
isNull, oi
Constructor and Description |
---|
LazyDate(LazyDate copy) |
LazyDate(LazyDateObjectInspector oi) |
Modifier and Type | Method and Description |
---|---|
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.
|
equals, getWritableObject, hashCode, logExceptionMessage, toString
getInspector, getObject, setInspector, setNull
public LazyDate(LazyDateObjectInspector oi)
public LazyDate(LazyDate copy)
public void init(ByteArrayRef bytes, int start, int length)
init
in interface LazyObjectBase
init
in class LazyObject<LazyDateObjectInspector>
bytes
- start
- length
- ByteArrayRef
public static void writeUTF8(OutputStream out, DateWritable d) throws IOException
out
- The output streami
- The Date to writeIOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.