Skip to content

Turn off default metadata with null #24

@sammefford

Description

@sammefford

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions