public Object getFieldValue(_Fields field) { switch (field) { case VALUE: return Long.valueOf(getValue()); } throw new IllegalStateException(); }
public Object getFieldValue(_Fields field) { switch (field) { case VALUE: return Long.valueOf(getValue()); } throw new IllegalStateException(); }
public Object getFieldValue(_Fields field) { switch (field) { case VALUE: return Long.valueOf(getValue()); } throw new IllegalStateException(); }
public Object getFieldValue(_Fields field) { switch (field) { case VALUE: return Long.valueOf(getValue()); } throw new IllegalStateException(); }
private static Long getLongValue(TI64Value tI64Value) { if (tI64Value.isSetValue()) { return tI64Value.getValue(); } return null; }
private static Long getLongValue(TI64Value tI64Value) { if (tI64Value.isSetValue()) { return tI64Value.getValue(); } return null; }
private static Long getLongValue(TI64Value tI64Value) { if (tI64Value.isSetValue()) { return tI64Value.getValue(); } return null; }
private static Long getLongValue(TI64Value tI64Value) { if (tI64Value.isSetValue()) { return tI64Value.getValue(); } return null; }
/** * Converts TColumnValue objects into their corresponding objects. This is needed for compatibility across * various Hive versions */ public static Object tColumnToObject(TColumnValue tColumnValue) throws ExploreException { if (tColumnValue.isSetBoolVal()) { return tColumnValue.getBoolVal().isValue(); } else if (tColumnValue.isSetByteVal()) { return tColumnValue.getByteVal().getValue(); } else if (tColumnValue.isSetDoubleVal()) { return tColumnValue.getDoubleVal().getValue(); } else if (tColumnValue.isSetI16Val()) { return tColumnValue.getI16Val().getValue(); } else if (tColumnValue.isSetI32Val()) { return tColumnValue.getI32Val().getValue(); } else if (tColumnValue.isSetI64Val()) { return tColumnValue.getI64Val().getValue(); } else if (tColumnValue.isSetStringVal()) { return tColumnValue.getStringVal().getValue(); } throw new ExploreException("Unknown column value encountered: " + tColumnValue); } }
/** * Converts TColumnValue objects into their corresponding objects. This is needed for compatibility across * various Hive versions */ public static Object tColumnToObject(TColumnValue tColumnValue) throws ExploreException { if (tColumnValue.isSetBoolVal()) { return tColumnValue.getBoolVal().isValue(); } else if (tColumnValue.isSetByteVal()) { return tColumnValue.getByteVal().getValue(); } else if (tColumnValue.isSetDoubleVal()) { return tColumnValue.getDoubleVal().getValue(); } else if (tColumnValue.isSetI16Val()) { return tColumnValue.getI16Val().getValue(); } else if (tColumnValue.isSetI32Val()) { return tColumnValue.getI32Val().getValue(); } else if (tColumnValue.isSetI64Val()) { return tColumnValue.getI64Val().getValue(); } else if (tColumnValue.isSetStringVal()) { return tColumnValue.getStringVal().getValue(); } throw new ExploreException("Unknown column value encountered: " + tColumnValue); } }