Open MMcM opened 5 years ago
I think maybe ParameterizedRecordMetaData
can just be RecordMetaDataBuilder
, meaning that you have to bind the parameters before getRecordMetaData
will succeed.
Impliying #316.
There could be a way for FDBRecordStore.Builder
to supply parameter bindings to its RecordMetaDataBuilder
RecordMetaDataProvider
. In particular, it could load them from the partially-open store subspace.
Implying an isParameterized
extension to #282.
One concern I would have with using a RecordMetaDataBuilder
as the parameterized thing would be that you couldn't share the object between different threads talking to different record stores (or you'd have to be really careful not to accidentally pollute the parameters of one store with the parameters of another).
Capturing two comments from a closed pull request:
@nschiefer https://github.com/FoundationDB/fdb-record-layer/pull/198#issuecomment-451213320
@alecgrieser https://github.com/FoundationDB/fdb-record-layer/pull/198#issuecomment-451246090