/** * Get an instance of {@link HiveSerDeWrapper}. * * @param serDeType The SerDe type. This should be one of the available {@link HiveSerDeWrapper.BuiltInHiveSerDe}s. */ public static HiveSerDeWrapper get(String serDeType) { return get(serDeType, Optional.<String> absent(), Optional.<String> absent()); }
/** * Get an instance of {@link HiveSerDeWrapper} from a {@link State}. * * @param state The state should contain property {@link #SERDE_SERIALIZER_TYPE}, and optionally contain properties * {@link #SERDE_SERIALIZER_INPUT_FORMAT_TYPE}, {@link #SERDE_SERIALIZER_OUTPUT_FORMAT_TYPE} and */ public static HiveSerDeWrapper getSerializer(State state) { Preconditions.checkArgument(state.contains(SERDE_SERIALIZER_TYPE), "Missing required property " + SERDE_SERIALIZER_TYPE); return get(state.getProp(SERDE_SERIALIZER_TYPE), Optional.fromNullable(state.getProp(SERDE_SERIALIZER_INPUT_FORMAT_TYPE)), Optional.fromNullable(state.getProp(SERDE_SERIALIZER_OUTPUT_FORMAT_TYPE))); }
/** * Get an instance of {@link HiveSerDeWrapper} from a {@link State}. * * @param state The state should contain property {@link #SERDE_DESERIALIZER_TYPE}, and optionally contain properties * {@link #SERDE_DESERIALIZER_INPUT_FORMAT_TYPE}, {@link #SERDE_DESERIALIZER_OUTPUT_FORMAT_TYPE} and */ public static HiveSerDeWrapper getDeserializer(State state) { Preconditions.checkArgument(state.contains(SERDE_DESERIALIZER_TYPE), "Missing required property " + SERDE_DESERIALIZER_TYPE); return get(state.getProp(SERDE_DESERIALIZER_TYPE), Optional.fromNullable(state.getProp(SERDE_DESERIALIZER_INPUT_FORMAT_TYPE)), Optional.fromNullable(state.getProp(SERDE_DESERIALIZER_OUTPUT_FORMAT_TYPE))); } }
/** * Get an instance of {@link HiveSerDeWrapper}. * * @param serDeType The SerDe type. This should be one of the available {@link HiveSerDeWrapper.BuiltInHiveSerDe}s. */ public static HiveSerDeWrapper get(String serDeType) { return get(serDeType, Optional.<String> absent(), Optional.<String> absent()); }
/** * Get an instance of {@link HiveSerDeWrapper} from a {@link State}. * * @param state The state should contain property {@link #SERDE_SERIALIZER_TYPE}, and optionally contain properties * {@link #SERDE_SERIALIZER_INPUT_FORMAT_TYPE}, {@link #SERDE_SERIALIZER_OUTPUT_FORMAT_TYPE} and */ public static HiveSerDeWrapper getSerializer(State state) { Preconditions.checkArgument(state.contains(SERDE_SERIALIZER_TYPE), "Missing required property " + SERDE_SERIALIZER_TYPE); return get(state.getProp(SERDE_SERIALIZER_TYPE), Optional.fromNullable(state.getProp(SERDE_SERIALIZER_INPUT_FORMAT_TYPE)), Optional.fromNullable(state.getProp(SERDE_SERIALIZER_OUTPUT_FORMAT_TYPE))); }
/** * Get an instance of {@link HiveSerDeWrapper} from a {@link State}. * * @param state The state should contain property {@link #SERDE_DESERIALIZER_TYPE}, and optionally contain properties * {@link #SERDE_DESERIALIZER_INPUT_FORMAT_TYPE}, {@link #SERDE_DESERIALIZER_OUTPUT_FORMAT_TYPE} and */ public static HiveSerDeWrapper getDeserializer(State state) { Preconditions.checkArgument(state.contains(SERDE_DESERIALIZER_TYPE), "Missing required property " + SERDE_DESERIALIZER_TYPE); return get(state.getProp(SERDE_DESERIALIZER_TYPE), Optional.fromNullable(state.getProp(SERDE_DESERIALIZER_INPUT_FORMAT_TYPE)), Optional.fromNullable(state.getProp(SERDE_DESERIALIZER_OUTPUT_FORMAT_TYPE))); } }