@Override public Object convertToAvro(DynamicTableEntity value) { try { if (COL_TIMESTAMP.equals(f.name()) || COL_TIMESTAMP.equals(mappedName)) { return value.getTimestamp(); } if (!value.getProperties().containsKey(mappedName) || value.getProperties().get(mappedName) == null) { return null; } return value.getProperties().get(mappedName).getValueAsLong(); } catch (Exception e) { LOGGER.error(i18nMessages.getMessage("error.ConversionError", e)); throw new ComponentException(e); } } }
this.getValueAsLong(); this.edmType = EdmType.INT64;
this.getValueAsLong(); this.edmType = EdmType.INT64;
@Override public Object convertToAvro(DynamicTableEntity value) { try { if (COL_TIMESTAMP.equals(f.name()) || COL_TIMESTAMP.equals(mappedName)) { return value.getTimestamp(); } if (!value.getProperties().containsKey(mappedName) || value.getProperties().get(mappedName) == null) { return null; } return value.getProperties().get(mappedName).getValueAsLong(); } catch (Exception e) { LOGGER.error(i18nMessages.getMessage("error.ConversionError", e)); throw new ComponentException(e); } } }
this.setter.invoke(instance, prop.getValueAsLong());
this.getValueAsLong(); this.type = Long.class;
this.setter.invoke(instance, prop.getValueAsLong());
this.getValueAsLong(); this.type = Long.class;