Google is committed to advancing racial equity for Black communities. See how.

LoadBundleTaskProgress

public final class LoadBundleTaskProgress extends Object

Represents a progress update or a final state from loading bundles.

Nested Class Summary

enum LoadBundleTaskProgress.TaskState Represents the state of bundle loading tasks. 

Public Method Summary

boolean
long
getBytesLoaded()
Returns how many bytes have been loaded.
int
getDocumentsLoaded()
Returns how many documents have been loaded.
Exception
getException()
If the LoadBundleTask failed, returns the exception.
LoadBundleTaskProgress.TaskState
getTaskState()
Returns the current state of the LoadBundleTask.
long
getTotalBytes()
Returns the total number of bytes in the bundle.
int
getTotalDocuments()
Returns the total number of documents in the bundle.
int

Inherited Method Summary

Public Methods

public boolean equals (Object o)

public long getBytesLoaded ()

Returns how many bytes have been loaded.

public int getDocumentsLoaded ()

Returns how many documents have been loaded.

public Exception getException ()

If the LoadBundleTask failed, returns the exception. Otherwise, returns null.

public LoadBundleTaskProgress.TaskState getTaskState ()

Returns the current state of the LoadBundleTask.

public long getTotalBytes ()

Returns the total number of bytes in the bundle. Returns 0 if the bundle failed to parse.

public int getTotalDocuments ()

Returns the total number of documents in the bundle. Returns 0 if the bundle failed to parse.

public int hashCode ()