Google LevelDB Operator

LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.

Note

To use LevelDB hooks and operators you must requires installation of plyvel. It will be installed if you specify the extra apache-airflow-providers-google[leveldb].

Put key

Get, put, delete key or write_batch, create database with comparator or different options in LevelDB is performed with the LevelDBOperator operator.

tests/system/providers/google/leveldb/example_leveldb.py[source]

put_key_leveldb_task = LevelDBOperator(
    task_id="put_key_leveldb",
    command="put",
    key=b"another_key",
    value=b"another_value",
    trigger_rule=TriggerRule.ALL_DONE,
)

Reference

For further information, look at:

Was this entry helpful?