schema

package
v0.0.0-...-33a8802 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(input interface{}) (*Schema, Error)

Load is.

Types

type Category

type Category struct {
	Class   string
	SrcName string
}

Category is.

func (*Category) Type

func (f *Category) Type() string

Type is.

type Class

type Class struct {
	Dim     Dim
	SrcName string
}

Class is.

type ConstDim

type ConstDim struct {
	Value int
}

ConstDim is.

func (*ConstDim) Equals

func (d *ConstDim) Equals(other Dim) bool

Equals is.

func (*ConstDim) IsVariable

func (d *ConstDim) IsVariable() bool

IsVariable is.

func (*ConstDim) IsWildcard

func (d *ConstDim) IsWildcard() bool

IsWildcard is.

func (*ConstDim) Match

func (d *ConstDim) Match(source Dim, dimMap map[string]Dim) (bool, map[string]Dim)

Match is.

type Dim

type Dim interface {
	Equals(other Dim) bool
	IsVariable() bool
	IsWildcard() bool
	Match(source Dim, dimMap map[string]Dim) (bool, map[string]Dim)
	// contains filtered or unexported methods
}

Dim is.

type Error

type Error interface {
	error
	Path() string
}

Error is.

type Field

type Field interface {
	Type() string
	// contains filtered or unexported methods
}

Field is.

type Link struct {
	LBound int
	UBound int
}

Link is.

func (*Link) IsUnbounded

func (l *Link) IsUnbounded() bool

IsUnbounded is.

type Node

type Node struct {
	IsSingleton bool
	Fields      map[string]Field
	Links       map[string]*Link
	SrcName     string
}

Node is.

type Schema

type Schema struct {
	Nodes        map[string]*Node
	Classes      map[string]*Class
	SrcDims      map[string]Dim
	IsUndirected bool
	IsCyclic     bool
	IsFanIn      bool
}

Schema is.

func (*Schema) Dump

func (s *Schema) Dump() interface{}

Dump is.

func (*Schema) Match

func (s *Schema) Match(source *Schema, buildMatching bool) (bool, *Schema)

Match is.

type Tensor

type Tensor struct {
	Dim     []Dim
	SrcDim  []Dim
	SrcName string
}

Tensor is.

func (*Tensor) Type

func (f *Tensor) Type() string

Type is.

type VarDim

type VarDim struct {
	Value string
}

VarDim is.

func (*VarDim) Equals

func (d *VarDim) Equals(other Dim) bool

Equals is.

func (*VarDim) IsVariable

func (d *VarDim) IsVariable() bool

IsVariable is.

func (*VarDim) IsWildcard

func (d *VarDim) IsWildcard() bool

IsWildcard is.

func (*VarDim) Match

func (d *VarDim) Match(source Dim, dimMap map[string]Dim) (bool, map[string]Dim)

Match is.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL