• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

facebook / rocksdb / 9819
85%
master: 49%

Build:
Build:
LAST BUILD BRANCH: atomic_ingest
DEFAULT BRANCH: master
Ran 21 Mar 2020 10:16PM UTC
Jobs 1
Files 3
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
9819

Pull #1570

travis-ci

Hari Shankar
Changing Java multiget API to return List<byte[]> instead of Map<byte[],
byte[]>. This is for two reasons:
1. Java arrays implement equals() as reference equality instead
of comparing each value. This means a HashMap should never have an array
as key, since anyone calling get() with a new array key with the exact same contents
as an existing key will get different results. It happens to work
currently because the byte[] reference is used as it is in the Map key.
But it is a confusing API for the caller becaues they cannot make this
assumption.
2. List<byte[]> keeps it close to the native API (which returns
byte[][]). It avoids the perf cost of creating a Map. If a caller does
not need Map functionality, the API should not force it unnecessarily,
especially in perf-critical use cases.

Ideally, the existing method should be deprecated and the new one added.
But that would require creating a new method name. multiGet is the best
name for this method. So I am trying to avoid changing it. This should
be a simple change for the clients to make, so as long as the major version
is bumped up, it should be ok to break backwards compatibility.
Pull Request #1570: Changing Java multiGet API to return List<byte[]> instead of Map<byte[], byte[]>

22 of 26 relevant lines covered (84.62%)

0.85 hits per line

Jobs
ID Job ID Ran Files Coverage
4 9819.4 (TEST_GROUP=3) 21 Mar 2020 10:16PM UTC 0
84.62
Travis Job 9819.4
Source Files on build 9819
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9819
  • Pull Request #1570
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc