@Override public void fromText(Text text) { t1 = TextSerializerHelper.consumeDouble(text, ','); x1 = TextSerializerHelper.consumeDouble(text, ','); y1 = TextSerializerHelper.consumeDouble(text, ','); t2 = TextSerializerHelper.consumeDouble(text, ','); x2 = TextSerializerHelper.consumeDouble(text, ','); y2 = TextSerializerHelper.consumeDouble(text, '\0'); }
@Override public Text toText(Text text) { TextSerializerHelper.serializeDouble(t1, text, ','); TextSerializerHelper.serializeDouble(x1, text, ','); TextSerializerHelper.serializeDouble(y1, text, ','); TextSerializerHelper.serializeDouble(t2, text, ','); TextSerializerHelper.serializeDouble(x2, text, ','); TextSerializerHelper.serializeDouble(y2, text, '\0'); return text; }