|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.lazy.LazyObjectBase
org.apache.hadoop.hive.serde2.lazy.LazyObject<OI>
org.apache.hadoop.hive.serde2.lazy.LazyPrimitive<LazyByteObjectInspector,ByteWritable>
org.apache.hadoop.hive.serde2.lazy.LazyByte
public class LazyByte
LazyObject for storing a value of Byte.
Part of the code is adapted from Apache Harmony Project. As with the specification, this implementation relied on code laid out in Henry S. Warren, Jr.'s Hacker's Delight, (Addison Wesley, 2002) as well as The Aggregate's Magic Algorithms.
Constructor Summary | |
---|---|
LazyByte(LazyByte copy)
|
|
LazyByte(LazyByteObjectInspector oi)
|
Method Summary | |
---|---|
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the data for this LazyObjectBase. |
static byte |
parseByte(byte[] bytes,
int start,
int length)
Parses the string argument as if it was a byte value and returns the result. |
static byte |
parseByte(byte[] bytes,
int start,
int length,
int radix)
Parses the string argument as if it was a byte value and returns the result. |
Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyPrimitive |
---|
equals, getObject, getWritableObject, hashCode, logExceptionMessage, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LazyByte(LazyByteObjectInspector oi)
public LazyByte(LazyByte copy)
Method Detail |
---|
public void init(ByteArrayRef bytes, int start, int length)
LazyObjectBase
init
in class LazyObjectBase
bytes
- The wrapper of the byte[].start
- The start position inside the bytes.length
- The length of the data, starting from "start"ByteArrayRef
public static byte parseByte(byte[] bytes, int start, int length)
bytes
- start
- length
- a UTF-8 encoded string representation of a single byte quantity.
NumberFormatException
- if the argument could not be parsed as a byte quantity.public static byte parseByte(byte[] bytes, int start, int length, int radix)
bytes
- start
- length
- a UTF-8 encoded string representation of a single byte quantity.radix
- the radix to use when parsing.
NumberFormatException
- if the argument could not be parsed as a byte quantity.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |