Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit c407211

Browse files
committed
stub new search methods
1 parent 55a68ab commit c407211

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

archaeologist/src/storage_api_local.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
CreateNodeArgs,
1717
EdgeUtil,
1818
Eid,
19-
GetNodeSliceArgs,
2019
NewNodeResponse,
2120
Nid,
2221
NodeBatch,
@@ -31,7 +30,7 @@ import {
3130
TEdgeJson,
3231
TNode,
3332
TNodeJson,
34-
TNodeSliceIterator,
33+
INodeIterator,
3534
TotalUserActivity,
3635
UserExternalPipelineId,
3736
UserExternalPipelineIngestionProgress,
@@ -540,17 +539,14 @@ export function makeLocalStorageApi(
540539
node: {
541540
get: ({ nid }: { nid: string; signal?: AbortSignal }) =>
542541
getNode({ store, nid }),
542+
getByOrigin: throwUnimplementedError('node.getByOrigin'),
543543
update: (
544544
args: { nid: string } & NodePatchRequest,
545545
_signal?: AbortSignal
546546
) => updateNode(store, args),
547547
create: (args: CreateNodeArgs, _signal?: AbortSignal) =>
548548
createNode(store, args),
549-
// TODO[snikitin@outlook.com] Local-hosted slicing implementation is a
550-
// problem because the datacenter-hosted version depends entirely on
551-
// time range search which is easy with in SQL, but with a KV-store
552-
// requires to load all nodes from memory on every "iteration"
553-
slice: throwUnimplementedError('node.slice'),
549+
iterate: throwUnimplementedError('node.iterate'),
554550
delete: throwUnimplementedError('node.delete'),
555551
bulkDelete: throwUnimplementedError('node.bulkdDelete'),
556552
batch: {

0 commit comments

Comments
 (0)