private void importColumns(long id) { String fullName = (String) decode(); int colN = (Integer) decode(); Table<Object> table = table(fullName); TableInternals<?> table2 = (TableInternals<?>) table; for (int i = 0; i < colN; i++) { String colName = (String) decode(); Object colVal = decode(); table2.fill(id, colName, colVal); } }
private void importRelations(long id) { int relN = (Integer) decode(); for (int i = 0; i < relN; i++) { String relName = (String) decode(); RelationInternals rel = (RelationInternals) relation(relName); int linksN = (Integer) decode(); for (int j = 0; j < linksN; j++) { long linkTo = (Long) decode(); rel.fill(id, linkTo); } } }
private void importRelations(long id) { int relN = (Integer) decode(); for (int i = 0; i < relN; i++) { String relName = (String) decode(); RelationInternals rel = (RelationInternals) relation(relName); int linksN = (Integer) decode(); for (int j = 0; j < linksN; j++) { long linkTo = (Long) decode(); rel.fill(id, linkTo); } } }
private void importColumns(long id) { String fullName = (String) decode(); int colN = (Integer) decode(); Table<Object> table = table(fullName); TableInternals<?> table2 = (TableInternals<?>) table; for (int i = 0; i < colN; i++) { String colName = (String) decode(); Object colVal = decode(); table2.fill(id, colName, colVal); } }
private void importColumns(long id) { String fullName = (String) decode(); int colN = (Integer) decode(); Table<Object> table = table(fullName); TableInternals<?> table2 = (TableInternals<?>) table; for (int i = 0; i < colN; i++) { String colName = (String) decode(); Object colVal = decode(); table2.fill(id, colName, colVal); } }
private void importRelations(long id) { int relN = (Integer) decode(); for (int i = 0; i < relN; i++) { String relName = (String) decode(); RelationInternals rel = (RelationInternals) relation(relName); int linksN = (Integer) decode(); for (int j = 0; j < linksN; j++) { long linkTo = (Long) decode(); rel.fill(id, linkTo); } } }
public synchronized void importRecord(long id, byte[] bytes) { SER_HELPER.clear(); SER_HELPER.put(bytes); SER_HELPER.flip(); boolean importTableData = (Boolean) decode(); if (importTableData) { importColumns(id); } importRelations(id); }
public synchronized void importRecord(long id, byte[] bytes) { SER_HELPER.clear(); SER_HELPER.put(bytes); SER_HELPER.flip(); boolean importTableData = (Boolean) decode(); if (importTableData) { importColumns(id); } importRelations(id); }
public synchronized void importRecord(long id, byte[] bytes) { SER_HELPER.clear(); SER_HELPER.put(bytes); SER_HELPER.flip(); boolean importTableData = (Boolean) decode(); if (importTableData) { importColumns(id); } importRelations(id); }