apache / accumulo

Apache Accumulo
https://accumulo.apache.org
Apache License 2.0
1.06k stars 445 forks source link

Improve TabletInformation.getLocation #4937

Open keith-turner opened 13 hours ago

keith-turner commented 13 hours ago

Is your feature request related to a problem? Please describe.

TabletInformation.getLocation() returns an Optional<String>. However the javadoc does not explain what is in the string. Looking at the implementation the string seems to be of the form <location type>:<host>:<port>.

Describe the solution you'd like At the very least the javadoc should describe the contents of the string. However a specialized type would be better. Sigh, if only we could use records for this, this would be a great place to use a record to define a tuple the code is returning.

dlmarion commented 12 hours ago

If / when #4851 is merged, you could use the ServerId class.