Class Mount
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
Typed session-resource mount descriptor (create-time input on POST /sessions).
Extends LinkedHashMap so it fits the existing List<Map<String, Object>>
resources parameter without conversion:
List<Map<String, Object>> resources = new ArrayList<>();
resources.add(Mount.oss("cn-beijing", "my-bucket", "datasets/", "/data")
.readOnly());
resources.add(Mount.bailianMemory("lib_xxx", "customer_001")
.projectIds(Arrays.asList("fact_rule_1"))
.profileSchema("schema_xxx"));
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MountbailianMemory(String memoryStoreId, String entityId) description(String description) static Mountinstructions(String instructions) static MountmemoryStore(String memoryStoreId) memoryStoreId(String memoryStoreId) static MountprofileSchema(String profileSchema) projectIds(List<String> projectIds) readOnly()Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesMethods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Constructor Details
-
Mount
public Mount()
-
-
Method Details
-
file
-
memoryStore
-
bailianMemory
-
oss
-
putType
-
fileId
-
mountPath
-
memoryStoreId
-
provider
-
entityId
-
projectIds
-
profileSchema
-
description
-
access
-
readOnly
-
readWrite
-
instructions
-
region
-
bucket
-
ossPath
-