Documentation ¶
Index ¶
- func GetEntityType(mappings []*types.Mapping) map[string][]string
- func GetExplicitTypeProp(mappings []*types.Mapping) map[string][]string
- func GetFuncDeps(mappings []*types.Mapping) (map[types.Entity]map[string]interface{}, error)
- func GetInArcInfo(mappings []*types.Mapping, nodeType string) ([]types.InArcInfo, error)
- func GetNodeRef(queries []*types.Query) map[types.Node]struct{}
- func GetNodeType(queries []*types.Query) (map[string]string, error)
- func GetOutArcInfo(mappings []*types.Mapping, nodeType string) (map[string][]types.OutArcInfo, error)
- func GetProvColumn(mappings []*types.Mapping) (map[string]types.Column, error)
- func GetQueryID(queries []*types.Query, matchTriple map[*types.Query]bool) map[*types.Query]int
- func GetSubTypeMap(tableTypesJSONFilePath string) (map[string]string, error)
- func MatchTriple(mappings []*types.Mapping, queries []*types.Query) (map[*types.Query]bool, error)
- func PruneMapping(mappings []*types.Mapping) []*types.Mapping
- func RewriteQuery(queries []*types.Query, subTypeMap map[string]string) []*types.Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEntityType ¶
GetEntityType obtains a map from entity key to the types.
func GetExplicitTypeProp ¶
GetExplicitTypeProp obtains a map from type to list of predicate
func GetFuncDeps ¶
GetFuncDeps obtains the functional deps from schema mapping.
func GetInArcInfo ¶
GetInArcInfo gets the table and columns corresponding to the node properties.
func GetNodeRef ¶
GetNodeRef obtains a list of node reference from query statements.
func GetNodeType ¶
GetNodeType obtains a map from node alias to the types.
func GetOutArcInfo ¶
func GetOutArcInfo( mappings []*types.Mapping, nodeType string, ) (map[string][]types.OutArcInfo, error)
GetOutArcInfo gets the table and columns corresponding to the node properties.
func GetProvColumn ¶
GetProvColumn obtains the provenance column for each table.
func GetQueryID ¶
GetQueryID obtains the id for query statement. If two query statements match to Triples table, they would have same query id if they have the same predciate and subject. If two query statements match to non-Triples table, they would have the same query id if they have the same subject. The same query id means they point to the same spanner table instance in SQL query.
func GetSubTypeMap ¶
GetSubTypeMap gets subtype map.
func MatchTriple ¶
MatchTriple takes list of queries and mappings and determines whether a query matches Triples table.
func PruneMapping ¶
PruneMapping prunes foreign key entity mappings.
Types ¶
This section is empty.