public class LazyHiveDecimal extends LazyPrimitive<LazyHiveDecimalObjectInspector,HiveDecimalWritable>
dataisNull, oi| Constructor and Description |
|---|
LazyHiveDecimal(LazyHiveDecimal copy) |
LazyHiveDecimal(LazyHiveDecimalObjectInspector oi) |
| Modifier and Type | Method and Description |
|---|---|
HiveDecimalWritable |
getWritableObject() |
void |
init(ByteArrayRef bytes,
int start,
int length)
Initializes LazyHiveDecimal object by interpreting the input bytes
as a numeric string
|
static void |
writeUTF8(OutputStream outputStream,
HiveDecimal hiveDecimal,
int scale)
Writes HiveDecimal object to output stream as string
|
static void |
writeUTF8(OutputStream outputStream,
HiveDecimal hiveDecimal,
int scale,
byte[] scratchBuffer)
Writes HiveDecimal object to output stream as string
|
static void |
writeUTF8(OutputStream outputStream,
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 HiveDecimalWritable getWritableObject()
getWritableObject in class LazyPrimitive<LazyHiveDecimalObjectInspector,HiveDecimalWritable>public static void writeUTF8(OutputStream outputStream, HiveDecimal hiveDecimal, int scale) throws IOException
outputStream - hiveDecimal - IOExceptionpublic static void writeUTF8(OutputStream outputStream, HiveDecimal hiveDecimal, int scale, byte[] scratchBuffer) throws IOException
outputStream - hiveDecimal - IOExceptionpublic static void writeUTF8(OutputStream outputStream, HiveDecimalWritable hiveDecimalWritable, int scale, byte[] scratchBuffer) throws IOException
outputStream - hiveDecimalWritable - IOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.