org.apache.hadoop.hive.ql.util
Enum JavaDataModel
java.lang.Object
java.lang.Enum<JavaDataModel>
org.apache.hadoop.hive.ql.util.JavaDataModel
- All Implemented Interfaces:
- Serializable, Comparable<JavaDataModel>
public enum JavaDataModel
- extends Enum<JavaDataModel>
Estimation of memory footprint of object
JAVA32
public static final JavaDataModel JAVA32
JAVA64
public static final JavaDataModel JAVA64
JAVA32_META
public static final int JAVA32_META
- See Also:
- Constant Field Values
JAVA32_ARRAY_META
public static final int JAVA32_ARRAY_META
- See Also:
- Constant Field Values
JAVA32_REF
public static final int JAVA32_REF
- See Also:
- Constant Field Values
JAVA32_OBJECT
public static final int JAVA32_OBJECT
- See Also:
- Constant Field Values
JAVA32_ARRAY
public static final int JAVA32_ARRAY
- See Also:
- Constant Field Values
JAVA64_META
public static final int JAVA64_META
- See Also:
- Constant Field Values
JAVA64_ARRAY_META
public static final int JAVA64_ARRAY_META
- See Also:
- Constant Field Values
JAVA64_REF
public static final int JAVA64_REF
- See Also:
- Constant Field Values
JAVA64_OBJECT
public static final int JAVA64_OBJECT
- See Also:
- Constant Field Values
JAVA64_ARRAY
public static final int JAVA64_ARRAY
- See Also:
- Constant Field Values
PRIMITIVES1
public static final int PRIMITIVES1
- See Also:
- Constant Field Values
PRIMITIVES2
public static final int PRIMITIVES2
- See Also:
- Constant Field Values
PRIMITIVE_BYTE
public static final int PRIMITIVE_BYTE
- See Also:
- Constant Field Values
values
public static JavaDataModel[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (JavaDataModel c : JavaDataModel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static JavaDataModel valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
object
public abstract int object()
array
public abstract int array()
ref
public abstract int ref()
hashMap
public abstract int hashMap(int entry)
hashMapEntry
public abstract int hashMapEntry()
hashSet
public abstract int hashSet(int entry)
linkedHashMap
public abstract int linkedHashMap(int entry)
linkedList
public abstract int linkedList(int entry)
arrayList
public abstract int arrayList()
memoryAlign
public abstract int memoryAlign()
lengthFor
public int lengthFor(String string)
lengthFor
public int lengthFor(NumericHistogram histogram)
lengthFor
public int lengthFor(NumDistinctValueEstimator estimator)
lengthForRandom
public int lengthForRandom()
primitive1
public int primitive1()
primitive2
public int primitive2()
alignUp
public static int alignUp(int value,
int align)
get
public static JavaDataModel get()
round
public static int round(int size)
lengthForByteArrayOfSize
public int lengthForByteArrayOfSize(int length)
lengthForObjectArrayOfSize
public int lengthForObjectArrayOfSize(int length)
lengthForLongArrayOfSize
public int lengthForLongArrayOfSize(int length)
lengthForDoubleArrayOfSize
public int lengthForDoubleArrayOfSize(int length)
lengthForIntArrayOfSize
public int lengthForIntArrayOfSize(int length)
lengthForBooleanArrayOfSize
public int lengthForBooleanArrayOfSize(int length)
lengthForTimestampArrayOfSize
public int lengthForTimestampArrayOfSize(int length)
lengthForDateArrayOfSize
public int lengthForDateArrayOfSize(int length)
lengthForDecimalArrayOfSize
public int lengthForDecimalArrayOfSize(int length)
lengthOfDecimal
public int lengthOfDecimal()
lengthOfTimestamp
public int lengthOfTimestamp()
lengthOfDate
public int lengthOfDate()
lengthForStringOfLength
public int lengthForStringOfLength(int strLen)
Copyright © 2014 The Apache Software Foundation. All rights reserved.