-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.txt
207 lines (144 loc) · 4.87 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
Store Semantics:
- Object Store
- Compute Store
- RDBMS Store
----------Data Store Notes----------
DataStoreTypeRegistry
- list of DataStore types that are initialized with the plugin manager
DataStore struct
- Session==preferred abstraction for datastore
- for example FileDataStore for a S3DataStore
- StoreReader interface
Get(path string, datapath string) (io.ReadCloser, error)
- StoreWriter interface
Put(srcReader io.Reader, destPath string, destDataPath string) (int, error)
- ConnectionDataStore: interface for DataStores that must initialize and external connection
- Connect(ds DataStore) (any, error)
- RawSession() any //filesapi.FileStore for an S3 instance
-----------------------------------
Datastore ComputeCache
//creates a cache if it doesn't exist or opens a compute cache
- GetComputeCache(path string) (ComputeCache,error)
//writes a scalar attribute to the cache
- PutAttribute(key string, value ComputeCacheAttrType) error
//reads a scalar attribute from the cache
- GetAttribute(key string, dest ComputeCacheAttrType) error
//write a slice to the cache
- Put(data []any, datapath string) error
//read a slice from the cache
- Get(datapath string, dest any) error
//////
- GetCache(input DataSourceOpInput)
- GetCacheAttribute
- PutCache(input PutOpInput)
- PutCacheAttribute()
------------------------------------
Payload
- IOManager
- Actions []Action
Action
- IOManager
- Type string
- Description string
IOManager
- Attributes
- Attributes
- Stores
- Inputs
- Outputs
- Methods
- GetDataSource(GetDsInput) (DataSource,error)
- GetInputDataSource
- GetOutputDataSource
- GetStore(name)
-> Store Type "Blob" (s3, azure blob, file systems)...default store type
- GetReader(input DataSourceOpInput) (io.Reader, error)
- Get(input DataSourceOpInput) ([]byte, error)
- Put(input PutOpInput) (int, error)
- Copy
- CopyFileToLocal(srcDataSourceName,pathkey,localpath)
- CopyFileToRemote(localPath, destDataSource, pathkey)
-> Store Type "Array" (tiledb/zarr)
- CreateArray() error ???b//creates an array with specific schema options
- GetArrayReader(input) (ArrayReader, error)
- GetArray(input GetComputeInput, dest any) error
- PutArray(input PutComputInput) (int,error)
-> Store Type "Record" (zarr, tiledb, rdbms)
- CreateTable() error ??? //creates a table with schema options
- GetRows(input) (RowReader, error)
- GetRecords(input GetComputeInput, dest any) error
- PutRecords(input PutComputInput) (int,error)
-> Store Type "Attribute"
- GetAttr
- PutAttr
- DeleteAttr
Store Interfaces:
- ConnectionDataStore
- StoreReader
- StoreWriter
- ArrayStore
- RecordStore
- AttributeStore
/////////////////////////////
US: i as a state prosecutor want to sue fema because they used the wrong boundary condition in a
ras model and overinflated flows in an area and are ovechargin my constituents
SP->Enginering Consultant->
/my-basin
/simulations
/sim1
/events
/1
/ras
/manifest
//utility
GetStoreAs[storeInterface](DataStores, name)
PluginManager
- initialize
- set log format for each language
- SendMessage(message SendMessageInput) (SendMessageOutput,error)
- WriteToEventStore(EventStoreInput input) OnErrorResumeNext
- scalars, arrays (matrix), compound data types, key/value
//EventStoreInterface
- WriteArray()
- ReadArray()
- WriteMatrix()
- ReadMatrix()
type ReadMatrixInput struct{
DataType:?
Buffer:
DataPath:
}
onInit:
- Log ComputeID, EventID, ManifestId
- Log PayloadID
{cc-log} {date} {time} {log-type} {log}
{cc-log} {date} {time} {log-type} {log}
- log-types
INFO
ACTION
pm.GetFileByName(name,path) ([]byte,error)
pm.FileReaderbyName(name,path) (reader,error)
should we have DataSource functions in addition to DataStore functions?
should they just be pass through?
Notes for Will:
- ccstore interface????
PutObject(input PutObjectInput) error
PullObject(input PullObjectInput) error
GetObject(input GetObjectInput) ([]byte, error)
GetPayload() (Payload, error)
SetPayload(p Payload) error
RootPath() string
HandlesDataStoreType(datasourcetype StoreType) bool
- error.go //why replace native error types?
- logger.go //Will wrap golang logger for implementation. Am going to rewrite and use log vs printf
- status.go?
- think this gets removed. Status is fuction of cloud dompute and I cazn't come up with a good reason to have this.
- internal progress is a function of Logging/Messaging
EventStore
- WriteArray
- ReadArray
- WriteMatrix
- ReadMatrix
- WriteAttribute(name, value)
- need compound data type....
* can dense array use string domain notation?