graphlab.SArray.from_avro

classmethod SArray.from_avro(filename)

Construct an SArray from an Avro file. The SArray type is determined by the schema of the Avro file.

Parameters:

filename : str

The Avro file to load into an SArray.

Notes

Currently only supports direct loading of files on the local filesystem.

References

Examples

Construct an SArray from a local Avro file named ‘data.avro’:

>>> graphlab.SArray.from_avro('/data/data.avro')