public interface N5JsonCacheableContainer
Implementations of interface methods must explicitly query the backing
storage unless noted otherwise. Cached implementations (e.g CachedGsonKeyValueN5Reader) call
these methods to update their N5JsonCache. Corresponding
N5Reader methods should use the cache, if present.
| Modifier and Type | Method and Description |
|---|---|
boolean |
existsFromContainer(String normalPathName,
String normalCacheKey)
Query whether a resource exists in this container.
|
com.google.gson.JsonElement |
getAttributesFromContainer(String normalPathName,
String normalCacheKey)
Returns a
JsonElement containing attributes at a given path,
for a given cache key. |
boolean |
isDatasetFromAttributes(String normalCacheKey,
com.google.gson.JsonElement attributes)
Returns true if a path is a dataset, given that the the given attributes exist
for the given cache key.
|
boolean |
isDatasetFromContainer(String normalPathName)
Query whether a path in this container is a dataset.
|
boolean |
isGroupFromAttributes(String normalCacheKey,
com.google.gson.JsonElement attributes)
Returns true if a path is a group, given that the the given attributes exist
for the given cache key.
|
boolean |
isGroupFromContainer(String normalPathName)
Query whether a path in this container is a group.
|
String[] |
listFromContainer(String normalPathName)
List the children of a path for this container.
|
com.google.gson.JsonElement getAttributesFromContainer(String normalPathName, String normalCacheKey)
JsonElement containing attributes at a given path,
for a given cache key.normalPathName - the normalized path namenormalCacheKey - the cache keyGsonKeyValueN5Reader.getAttributes(java.lang.String)boolean existsFromContainer(String normalPathName, String normalCacheKey)
normalPathName - the normalized path namenormalCacheKey - the normalized resource name (may be null).boolean isGroupFromContainer(String normalPathName)
normalPathName - the normalized path nameboolean isDatasetFromContainer(String normalPathName)
normalPathName - the normalized path nameN5Reader.datasetExists(java.lang.String)boolean isGroupFromAttributes(String normalCacheKey, com.google.gson.JsonElement attributes)
Should not call the backing storage.
normalCacheKey - the cache keyattributes - the attributesboolean isDatasetFromAttributes(String normalCacheKey, com.google.gson.JsonElement attributes)
Should not call the backing storage.
normalCacheKey - the cache keyattributes - the attributesString[] listFromContainer(String normalPathName)
normalPathName - the normalized path nameN5Reader.list(java.lang.String)Copyright © 2017–2026 Saalfeld Lab. All rights reserved.