/** * Initializes LazyDate object by interpreting the input bytes as a SQL date string. * * @param bytes * @param start * @param length */ @Override public void init(ByteArrayRef bytes, int start, int length) { String s = null; if (!LazyUtils.isDateMaybe(bytes.getData(), start, length)) { isNull = true; return; } try { s = Text.decode(bytes.getData(), start, length); data.set(Date.valueOf(s)); isNull = false; } catch (Exception e) { isNull = true; logExceptionMessage(bytes, start, length, "DATE"); } }
/** * Initializes LazyDate object by interpreting the input bytes as a SQL date string. * * @param bytes * @param start * @param length */ @Override public void init(ByteArrayRef bytes, int start, int length) { String s = null; try { s = Text.decode(bytes.getData(), start, length); data.set(Date.valueOf(s)); isNull = false; } catch (Exception e) { isNull = true; logExceptionMessage(bytes, start, length, "DATE"); } }
/** * Initializes LazyDate object by interpreting the input bytes as a SQL date string. * * @param bytes * @param start * @param length */ @Override public void init(ByteArrayRef bytes, int start, int length) { String s = null; try { s = Text.decode(bytes.getData(), start, length); data.set(Date.valueOf(s)); isNull = false; } catch (Exception e) { isNull = true; logExceptionMessage(bytes, start, length, "DATE"); } }
/** * Initializes LazyDate object by interpreting the input bytes as a SQL date string. * * @param bytes * @param start * @param length */ @Override public void init(ByteArrayRef bytes, int start, int length) { String s = null; try { s = Text.decode(bytes.getData(), start, length); data.set(Date.valueOf(s)); isNull = false; } catch (Exception e) { isNull = true; logExceptionMessage(bytes, start, length, "DATE"); } }
/** * Initializes LazyDate object by interpreting the input bytes as a SQL date string. * * @param bytes * @param start * @param length */ @Override public void init(ByteArrayRef bytes, int start, int length) { String s = null; if (!LazyUtils.isDateMaybe(bytes.getData(), start, length)) { isNull = true; return; } try { s = Text.decode(bytes.getData(), start, length); data.set(Date.valueOf(s)); isNull = false; } catch (Exception e) { isNull = true; logExceptionMessage(bytes, start, length, "DATE"); } }