BUG-2383: introduce OffsetMap 36/15936/6
authorRobert Varga <rovarga@cisco.com>
Mon, 2 Mar 2015 16:02:33 +0000 (17:02 +0100)
committerDana Kutenicsova <dkutenic@cisco.com>
Thu, 5 Mar 2015 08:49:51 +0000 (09:49 +0100)
commitc30440c3dba43e496d26f9e014fec4421c03098f
tree4d5b6a9e66d8ef725c75af793d670b33cfd76da9
parent62c6914dc5952b13793afbd7de9959017c003ff1
BUG-2383: introduce OffsetMap

For the sectionprocess we will need a compact way of tracing
peer/attribute mappings. Storing things in array is the most compact
form, but we need to manage a lookup table. This is the role of
OffsetMap, which maps an UnsignedInteger (e.g. a BGP Identifier) to an
offset. We then need to only allocate a single array for each entry to
hold the actual values.

Change-Id: I7c4c8b841cca0330f9646e5e629a824fd929f181
Signed-off-by: Robert Varga <rovarga@cisco.com>
bgp/rib-impl/pom.xml
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/OffsetMap.java [new file with mode: 0644]