-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add draft for lazy unique index population.
- Loading branch information
Showing
10 changed files
with
575 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# coding: utf-8 | ||
|
||
from __future__ import annotations | ||
|
||
|
||
__all__ = ["DASDatasetAdapter"] | ||
|
||
|
||
from order.adapters.base import Adapter, Materialized | ||
|
||
|
||
class DASDatasetAdapter(Adapter): | ||
|
||
name = "das_dataset" | ||
|
||
def retrieve_data(self, *, keys: list[str]) -> Materialized: | ||
if keys[0].startswith("/SCALE"): | ||
return Materialized(n_events=1, n_files=1) | ||
return Materialized(n_events=5_000_000, n_files=12) | ||
|
||
|
||
class DASLFNsAdapter(Adapter): | ||
|
||
name = "das_lfns" | ||
|
||
def retrieve_data(self, *, keys: list[str]) -> Materialized: | ||
if keys[0].startswith("/SCALE"): | ||
return Materialized(lfns=["/SCALE/b/NANOAODSIM"]) | ||
return Materialized(lfns=["/a/b/NANOAODSIM"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.