public class LazyHiveDecimal extends LazyPrimitive<LazyHiveDecimalObjectInspector,org.apache.hadoop.hive.serde2.io.HiveDecimalWritable>
data
isNull, 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, toString
getInspector, getObject, setInspector, setNull
public LazyHiveDecimal(LazyHiveDecimalObjectInspector oi)
public LazyHiveDecimal(LazyHiveDecimal copy)
public void init(ByteArrayRef bytes, int start, int length)
init
in interface LazyObjectBase
init
in class LazyObject<LazyHiveDecimalObjectInspector>
bytes
- start
- length
- ByteArrayRef
public 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
- IOException
public static void writeUTF8(OutputStream outputStream, org.apache.hadoop.hive.common.type.HiveDecimal hiveDecimal, int scale, byte[] scratchBuffer) throws IOException
outputStream
- hiveDecimal
- IOException
public static void writeUTF8(OutputStream outputStream, org.apache.hadoop.hive.serde2.io.HiveDecimalWritable hiveDecimalWritable, int scale, byte[] scratchBuffer) throws IOException
outputStream
- hiveDecimal
- IOException
Copyright © 2021 The Apache Software Foundation. All rights reserved.