public class LazyHiveDecimal extends LazyPrimitive<LazyHiveDecimalObjectInspector,org.apache.hadoop.hive.serde2.io.HiveDecimalWritable>
dataisNull, oi| Constructor and Description |
|---|
LazyHiveDecimal(LazyHiveDecimal copy) |
LazyHiveDecimal(LazyHiveDecimalObjectInspector oi) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.hive.serde2.io.HiveDecimalWritable |
getWritableObject() |
void |
init(ByteArrayRef bytes,
int start,
int length)
Initilizes LazyHiveDecimal object by interpreting the input bytes
as a numeric string
|
static void |
writeUTF8(OutputStream outputStream,
org.apache.hadoop.hive.common.type.HiveDecimal hiveDecimal,
int scale)
Writes HiveDecimal object to output stream as string
|
static void |
writeUTF8(OutputStream outputStream,
org.apache.hadoop.hive.common.type.HiveDecimal hiveDecimal,
int scale,
byte[] scratchBuffer)
Writes HiveDecimal object to output stream as string
|
static void |
writeUTF8(OutputStream outputStream,
org.apache.hadoop.hive.serde2.io.HiveDecimalWritable hiveDecimalWritable,
int scale,
byte[] scratchBuffer)
Writes HiveDecimalWritable object to output stream as string
|
equals, hashCode, logExceptionMessage, toStringgetInspector, getObject, setInspector, setNullpublic LazyHiveDecimal(LazyHiveDecimalObjectInspector oi)
public LazyHiveDecimal(LazyHiveDecimal copy)
public void init(ByteArrayRef bytes, int start, int length)
init in interface LazyObjectBaseinit in class LazyObject<LazyHiveDecimalObjectInspector>bytes - start - length - ByteArrayRefpublic org.apache.hadoop.hive.serde2.io.HiveDecimalWritable getWritableObject()
getWritableObject in class LazyPrimitive<LazyHiveDecimalObjectInspector,org.apache.hadoop.hive.serde2.io.HiveDecimalWritable>public static void writeUTF8(OutputStream outputStream, org.apache.hadoop.hive.common.type.HiveDecimal hiveDecimal, int scale) throws IOException
outputStream - hiveDecimal - IOExceptionpublic static void writeUTF8(OutputStream outputStream, org.apache.hadoop.hive.common.type.HiveDecimal hiveDecimal, int scale, byte[] scratchBuffer) throws IOException
outputStream - hiveDecimal - IOExceptionpublic static void writeUTF8(OutputStream outputStream, org.apache.hadoop.hive.serde2.io.HiveDecimalWritable hiveDecimalWritable, int scale, byte[] scratchBuffer) throws IOException
outputStream - hiveDecimalWritable - IOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.