public class CanonicalMetadataParser extends Object implements N5MetadataParser<CanonicalMetadata>
| Modifier and Type | Field and Description |
|---|---|
protected Predicate<CanonicalMetadata> |
filter |
protected com.google.gson.Gson |
gson |
protected ContainerMetadataNode |
root |
| Constructor and Description |
|---|
CanonicalMetadataParser() |
CanonicalMetadataParser(org.janelia.saalfeldlab.n5.N5Reader n5,
String n5Tree,
String translation)
Deprecated.
|
CanonicalMetadataParser(Predicate<CanonicalMetadata> filter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapply, parseDatasetAttributes, parseMetadataandThenprotected com.google.gson.Gson gson
protected ContainerMetadataNode root
protected Predicate<CanonicalMetadata> filter
public CanonicalMetadataParser()
public CanonicalMetadataParser(Predicate<CanonicalMetadata> filter)
@Deprecated public CanonicalMetadataParser(org.janelia.saalfeldlab.n5.N5Reader n5, String n5Tree, String translation)
public void setFilter(Predicate<CanonicalMetadata> filter)
public com.google.gson.Gson getGson()
public void setGson(com.google.gson.Gson gson)
@Deprecated protected void setup(org.janelia.saalfeldlab.n5.N5Reader n5)
public Optional<CanonicalMetadata> parseMetadata(org.janelia.saalfeldlab.n5.N5Reader n5, N5TreeNode node)
N5MetadataParserN5DatasetDiscoverer while discovering the N5 tree and filling the metadata for datasets or groups.
The metadata parsing is done in the bottom-up fashion, so the children of the given node have already been processed and should already contain valid metadata (if any).
parseMetadata in interface N5MetadataParser<CanonicalMetadata>n5 - the readernode - list of tree nodes@Deprecated public Optional<CanonicalMetadata> parseMetadata(String dataset, String groupSep)
@Deprecated public Optional<CanonicalMetadata> parseMetadata(N5TreeNode node, String groupSep)
public CanonicalMetadata canonicalMetadata(HashMap<String,com.google.gson.JsonElement> attrMap)
@Deprecated public static net.thisptr.jackson.jq.Scope buildRootScope()
JqUtils instead.public static Optional<org.janelia.saalfeldlab.n5.DatasetAttributes> datasetAttributes(com.google.gson.JsonDeserializationContext context, com.google.gson.JsonElement elem)
Copyright © 2021–2026 Saalfeld Lab. All rights reserved.