Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LabComm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Anders Blomdell
LabComm
Commits
e6fe7ff8
Commit
e6fe7ff8
authored
10 years ago
by
Anders Blomdell
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.control.lth.se:anders_blomdell/labcomm
parents
cda634f8
f6f91400
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/tech_report.tex
+57
-0
57 additions, 0 deletions
doc/tech_report.tex
with
57 additions
and
0 deletions
doc/tech_report.tex
+
57
−
0
View file @
e6fe7ff8
...
@@ -666,6 +666,63 @@ LabComm assumes that, while the transport may drop packets, there will
...
@@ -666,6 +666,63 @@ LabComm assumes that, while the transport may drop packets, there will
be no bit errors in a received packet. If data integrity is required,
be no bit errors in a received packet. If data integrity is required,
that is delegated to the reader and writer for the particular transport.
that is delegated to the reader and writer for the particular transport.
\subsubsection
{
Representation of hierarchical data types
}
For a type that contains fields of other user types, like
\begin{verbatim}
typedef struct
{
int x;
int y;
}
Point;
sample struct
{
Point start;
Point end;
}
line;
\end{verbatim}
LabComm encodes both the flattened signature and the
typedef which allows the hierarchical type structure to be
reconstructed.
%
The avro encoding is quite similar.
The
\verb
+
Line
+
example, corresponds to the two schemas
\begin{verbatim}
{
"namespace": "example.avro",
"type": "record",
"name": "Point",
"fields": [
{
"name": "x", "type": "int"
}
,
{
"name": "y", "type": "int"
}
]
}
\end{verbatim}
and
\begin{verbatim}
{
"namespace": "example.avro",
"type": "record",
"name": "Line",
"fields": [
{
"name": "start", "type": "Point"
}
,
{
"name": "end", "type": "Point"
}
]
}
\end{verbatim}
which is encoded in an Object Container File as
\begin{verbatim}
{
"type":"record",
"name":"Line",
"namespace":"example.avro",
"fields":[
{
"name":"start",
"type":
{
"type":"record",
"name":"Point",
"fields":[
{
"name":"x","type":"int"
}
,
{
"name":"y","type":"int"
}
]
}}
,
{
"name":"end",
"type":"Point"
}
]
}
\end{verbatim}
\subsubsection
{
Fetures not in LabComm
}
\subsubsection
{
Fetures not in LabComm
}
Avro has a set of features with no counterpart in LabComm. They include
Avro has a set of features with no counterpart in LabComm. They include
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment