zcollection.indexing.abc.IndexingCallable#

class zcollection.indexing.abc.IndexingCallable(*args, **kwargs)[source]#

Bases: Protocol

Protocol for indexing the partitions of a collection.

A partition callable is a function that accepts a dataset and returns a numpy structured array to be converted to a DataFrame and stored in the index. The function is called for each partition of the collection to determine the first and last index of the partition that contains the value to be indexed.

Protected Methods

Special Methods

__call__(zds, *args, **kwargs)

Indexing the partition of the collection.

__callable_proto_members_only__

__parameters__

__protocol_attrs__

__subclasshook__(other)

Abstract classes can override this to customize issubclass().