public enum KeyValueAccessBackend extends Enum<KeyValueAccessBackend> implements Predicate<URI>, org.apache.commons.lang3.function.TriFunction<URI,N5Factory,Boolean,org.janelia.saalfeldlab.n5.KeyValueAccess>
KeyValueAccess for N5Readers and N5Writers.
IMPORTANT: If ever new KeyValueAccess backends are adding, they MUST be re-ordered
such that the earliest predicates are the most restrictive, and the later predicates
are the least restrictive. This ensures that when iterating through the values of
KeyValueAccessBackend you can test them in order, and stop at the first
KeyValueAccess that is generated.| Enum Constant and Description |
|---|
AWS |
FILE |
GOOGLE_CLOUD |
HTTP |
| Modifier and Type | Method and Description |
|---|---|
org.janelia.saalfeldlab.n5.KeyValueAccess |
apply(URI uri,
N5Factory factory,
Boolean readOnly) |
static org.janelia.saalfeldlab.n5.KeyValueAccess |
getKeyValueAccess(URI uri,
boolean readOnly)
Test the provided
URI to and return the appropriate KeyValueAccess. |
boolean |
test(URI uri) |
static KeyValueAccessBackend |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyValueAccessBackend[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfandThenpublic static final KeyValueAccessBackend GOOGLE_CLOUD
public static final KeyValueAccessBackend AWS
public static final KeyValueAccessBackend HTTP
public static final KeyValueAccessBackend FILE
public static KeyValueAccessBackend[] values()
for (KeyValueAccessBackend c : KeyValueAccessBackend.values()) System.out.println(c);
public static KeyValueAccessBackend valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic org.janelia.saalfeldlab.n5.KeyValueAccess apply(URI uri, N5Factory factory, Boolean readOnly)
apply in interface org.apache.commons.lang3.function.TriFunction<URI,N5Factory,Boolean,org.janelia.saalfeldlab.n5.KeyValueAccess>@Nullable public static org.janelia.saalfeldlab.n5.KeyValueAccess getKeyValueAccess(URI uri, boolean readOnly)
URI to and return the appropriate KeyValueAccess.
If no appropriate KeyValueAccess is found, may be nulluri - to create a KeyValueAccess from.KeyValueAccess and container path, or null if none are validCopyright © 2021–2026 Saalfeld Lab. All rights reserved.