bchapuis opened a new pull request, #857:
URL: https://github.com/apache/incubator-baremaps/pull/857
This is an attempt at improving the data frame abstraction. The following
diagramm describes the overall architecture.
```mermaid
classDiagram
class DataColumn {
+String name()
+Type type()
}
class DataSchema {
+String name()
+List<DataColumn> columns()
+DataRow createRow()
}
class DataRow {
+DataSchema schema()
+List<?> values()
+Object get(String column)
+Object get(int index)
+void set(String column, Object value)
+void set(int index, Object value)
+DataRow with(String column, Object value)
+DataRow with(int index, Object value)
}
class DataFrame {
+DataSchema schema()
+boolean add(DataRow row)
+void clear()
+long size()
+Iterator<DataRow> iterator()
}
class DataStore {
+List<String> list()
+DataFrame get(String name)
+void add(DataFrame frame)
+void add(String name, DataFrame frame)
+void remove(String name)
}
DataStore --> DataFrame : has
DataFrame --> DataRow : has
DataFrame --> DataSchema : respects
DataRow --> DataColumn : has
DataRow --> DataSchema : respects
DataSchema --> DataColumn : creates
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]