-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Description
The following submitted by Kim Coleman:
What is the proper way to “turn off” default metadata for a batch? Is it by passing a null in to DocumentWriteSet.addDefaultMetadata, or by passing in a handle with no values set? That is, which of these:
batch.addDefaultMetadata(null);
DocumentMetadataHandle handle = new DocumentMetadataHandle();
batch.addDefaultMetadata(handle);
The first of these does not work, atm. The second does, but is that intentional or accidental? By which I mean, the default values in a handle with no explicit values set happen to correspond to system defaults, since, for example, the default document quality is 0.
That may be by design, which is fine. I just like to make sure such behaviors are intentional.
-Kim