@Override public void encode(ByteBuffer buf, Object value) { // buf.put((byte) 65); // A // buf.put((byte) 66); // B // buf.put((byte) 67); // C // buf.put((byte) 68); // D U.encode(value, buf); // buf.put((byte) 'D'); // buf.put((byte) 'O'); // buf.put((byte) 'N'); // buf.put((byte) 'E'); }
private void exportRelations(long id) { U.encode(relations.size(), SER_HELPER); for (Entry<String, RWRelation> rel : relations.entrySet()) { U.encode(rel.getKey(), SER_HELPER); long[] links = rel.getValue().linksFrom(id).toArray(); U.encode(links.length, SER_HELPER); for (long link : links) { U.encode(link, SER_HELPER); } } }
private void exportRelations(long id) { U.encode(relations.size(), SER_HELPER); for (Entry<String, RWRelation> rel : relations.entrySet()) { U.encode(rel.getKey(), SER_HELPER); long[] links = rel.getValue().linksFrom(id).toArray(); U.encode(links.length, SER_HELPER); for (long link : links) { U.encode(link, SER_HELPER); } } }
private void exportRelations(long id) { U.encode(relations.size(), SER_HELPER); for (Entry<String, RWRelation> rel : relations.entrySet()) { U.encode(rel.getKey(), SER_HELPER); long[] links = rel.getValue().linksFrom(id).toArray(); U.encode(links.length, SER_HELPER); for (long link : links) { U.encode(link, SER_HELPER); } } }
private void exportColumns(long id) { IdAddress address = ids.get(id); boolean exportTableData = address != null; U.encode(exportTableData, SER_HELPER); if (exportTableData) { TableInternals<?> table = (TableInternals<?>) address.table; PropertyInfo[] props = table.props(); U.encode(table.getClazz().getCanonicalName(), SER_HELPER); U.encode(props.length, SER_HELPER); for (PropertyInfo prop : props) { String colName = prop.getName(); Object colVal = prop.getColumn().get(address.row); U.encode(colName, SER_HELPER); U.encode(colVal, SER_HELPER); } } }
private void exportColumns(long id) { IdAddress address = ids.get(id); boolean exportTableData = address != null; U.encode(exportTableData, SER_HELPER); if (exportTableData) { TableInternals<?> table = (TableInternals<?>) address.table; PropertyInfo[] props = table.props(); U.encode(table.getClazz().getCanonicalName(), SER_HELPER); U.encode(props.length, SER_HELPER); for (PropertyInfo prop : props) { String colName = prop.getName(); Object colVal = prop.getColumn().get(address.row); U.encode(colName, SER_HELPER); U.encode(colVal, SER_HELPER); } } }
private void exportColumns(long id) { IdAddress address = ids.get(id); boolean exportTableData = address != null; U.encode(exportTableData, SER_HELPER); if (exportTableData) { TableInternals<?> table = (TableInternals<?>) address.table; PropertyInfo[] props = table.props(); U.encode(table.getClazz().getCanonicalName(), SER_HELPER); U.encode(props.length, SER_HELPER); for (PropertyInfo prop : props) { String colName = prop.getName(); Object colVal = prop.getColumn().get(address.row); U.encode(colName, SER_HELPER); U.encode(colVal, SER_HELPER); } } }