Skip to main content

DownloadResponse

This class represents the response from a catalog download operation. It provides methods to retrieve information about cached items, including a bit set indicating which requested items were cached, the total size of the cached results, and the count of cached items.

Methods


GetCachedResults()

@classmethod
def GetCachedResults() - > *bitarray.BitSet

Gets a bit set representing which items from the request were cached.

Returns

TypeDescription
*bitarray.BitSetA bit set indicating which items from the original request were found in the cache.

GetResultsSize()

@classmethod
def GetResultsSize() - > int

Gets the total size of the cached result.

Returns

TypeDescription
intThe total size of the cached results, typically in bytes.

GetCachedCount()

@classmethod
def GetCachedCount() - > int

A convenience method to retrieve the number of cached items.

Returns

TypeDescription
intThe count of items that were successfully retrieved from the cache.