dvid: github.com/janelia-flyem/dvid/datatype/tarsupervoxels Index | Files

package tarsupervoxels

import "github.com/janelia-flyem/dvid/datatype/tarsupervoxels"

Package tarsupervoxels implements DVID support for data blobs associated with supervoxels.


Package Files

keys.go sync.go tarsupervoxels.go


const (
    Version  = "0.1"
    RepoURL  = "github.com/janelia-flyem/dvid/datatype/tarsupervoxels"
    TypeName = "tarsupervoxels"

func DecodeTKey Uses

func DecodeTKey(tk storage.TKey) (supervoxel uint64, ext string, err error)

DecodeTKey returns the supervoxel id corresponding to the type-specific ke.y

func NewTKey Uses

func NewTKey(supervoxel uint64, ext string) (storage.TKey, error)

NewTKey returns the type-specific key corresponding to a supervoxel id in simple ASCII bytes.

type Data Uses

type Data struct {

    // Extension is the expected extension for blobs uploaded.
    // If no extension is given, it is "dat" by default.
    Extension string

Data embeds the datastore's Data and extends it with keyvalue properties (none for now).

func GetByUUIDName Uses

func GetByUUIDName(uuid dvid.UUID, name dvid.InstanceName) (*Data, error)

GetByUUIDName returns a pointer to tarsupervoxels data given a UUID and data name.

func (*Data) DeleteData Uses

func (d *Data) DeleteData(uuid dvid.UUID, supervoxel uint64) error

DeleteData deletes upervoxel data

func (*Data) DescribeTKeyClass Uses

func (d *Data) DescribeTKeyClass(tkc storage.TKeyClass) string

DescribeTKeyClass returns a string explanation of what a particular TKeyClass is used for. Implements the datastore.TKeyClassDescriber interface.

func (*Data) DoRPC Uses

func (d *Data) DoRPC(request datastore.Request, reply *datastore.Response) error

DoRPC acts as a switchboard for RPC commands.

func (*Data) Equals Uses

func (d *Data) Equals(d2 *Data) bool

func (*Data) GetData Uses

func (d *Data) GetData(uuid dvid.UUID, supervoxel uint64) ([]byte, bool, error)

GetData gets data for a supervoxel where the returned bool is true if data is found

func (*Data) GetSyncSubs Uses

func (d *Data) GetSyncSubs(synced dvid.Data) (datastore.SyncSubs, error)

GetSyncSubs implements the datastore.Syncer interface, but tarsupervoxels doesn't need to process events.

func (*Data) GobDecode Uses

func (d *Data) GobDecode(b []byte) error

func (*Data) GobEncode Uses

func (d *Data) GobEncode() ([]byte, error)

func (*Data) Help Uses

func (d *Data) Help() string

func (*Data) JSONString Uses

func (d *Data) JSONString() (jsonStr string, err error)

JSONString returns the JSON for this Data's configuration

func (*Data) MarshalJSON Uses

func (d *Data) MarshalJSON() ([]byte, error)

func (*Data) PutData Uses

func (d *Data) PutData(uuid dvid.UUID, supervoxel uint64, data []byte) error

PutData puts supervoxel data

func (*Data) ServeHTTP Uses

func (d *Data) ServeHTTP(uuid dvid.UUID, ctx *datastore.VersionedCtx, w http.ResponseWriter, r *http.Request) (activity map[string]interface{})

ServeHTTP handles all incoming HTTP requests for this data.

type Type Uses

type Type struct {

Type embeds the datastore's Type to create a unique type for keyvalue functions.

func NewType Uses

func NewType() *Type

NewType returns a pointer to a new keyvalue Type with default values set.

func (*Type) Help Uses

func (dtype *Type) Help() string

func (*Type) NewDataService Uses

func (dtype *Type) NewDataService(uuid dvid.UUID, id dvid.InstanceID, name dvid.InstanceName, c dvid.Config) (datastore.DataService, error)

NewDataService returns a pointer to new keyvalue data with default values.

Package tarsupervoxels imports 18 packages (graph). Updated 2019-08-23. Refresh now. Tools for package owners.