Skip to content

Commit

Permalink
Move mapper internal to planner
Browse files Browse the repository at this point in the history
Declares it's usage to be internal to the planner package, hopefull discouraging it's usage outside, and hopefully clarifying it's purpose. Is a straight cut-paste, no logic has changed in this commit.
  • Loading branch information
AndrewSisley committed Oct 25, 2022
1 parent 60e769d commit 2ffd5f3
Show file tree
Hide file tree
Showing 28 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion planner/arbitrary_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"strings"

"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

// A data-source that may yield child items, parent items, or both depending on configuration
Expand Down
2 changes: 1 addition & 1 deletion planner/average.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/sourcenetwork/defradb/client/request"
"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/errors"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

type averageNode struct {
Expand Down
2 changes: 1 addition & 1 deletion planner/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/db/fetcher"
"github.com/sourcenetwork/defradb/errors"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

type dagScanNode struct {
Expand Down
2 changes: 1 addition & 1 deletion planner/count.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/sourcenetwork/defradb/client"
"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/core/enumerable"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

type countNode struct {
Expand Down
2 changes: 1 addition & 1 deletion planner/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/db/base"
"github.com/sourcenetwork/defradb/errors"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

// createNode is used to construct and execute
Expand Down
2 changes: 1 addition & 1 deletion planner/datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/sourcenetwork/defradb/client"
"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/errors"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

// sourceInfo stores info about the data source
Expand Down
2 changes: 1 addition & 1 deletion planner/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package planner
import (
"github.com/sourcenetwork/defradb/client"
"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

type deleteNode struct {
Expand Down
2 changes: 1 addition & 1 deletion planner/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/sourcenetwork/defradb/client/request"
"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/errors"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

// A node responsible for the grouping of documents by a given selection of fields.
Expand Down
2 changes: 1 addition & 1 deletion planner/limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package planner

import (
"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

// Limit the results, yielding only what the limit/offset permits
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion planner/order.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/errors"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

// simplified planNode interface.
Expand Down
2 changes: 1 addition & 1 deletion planner/planner.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/sourcenetwork/defradb/datastore"
"github.com/sourcenetwork/defradb/errors"
"github.com/sourcenetwork/defradb/logging"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion planner/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/db/base"
"github.com/sourcenetwork/defradb/db/fetcher"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

// scans an index for records
Expand Down
2 changes: 1 addition & 1 deletion planner/select.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/sourcenetwork/defradb/db/base"
"github.com/sourcenetwork/defradb/db/fetcher"
"github.com/sourcenetwork/defradb/errors"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

/*
Expand Down
2 changes: 1 addition & 1 deletion planner/sum.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/core/enumerable"
"github.com/sourcenetwork/defradb/errors"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

type sumNode struct {
Expand Down
2 changes: 1 addition & 1 deletion planner/top.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/sourcenetwork/defradb/client/request"
"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/errors"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

const topLevelNodeKind string = "topLevelNode"
Expand Down
2 changes: 1 addition & 1 deletion planner/type_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/db/base"
"github.com/sourcenetwork/defradb/errors"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
"github.com/sourcenetwork/defradb/query/graphql/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion planner/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

"github.com/sourcenetwork/defradb/client"
"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

type updateNode struct {
Expand Down
2 changes: 1 addition & 1 deletion planner/values.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/db/base"
"github.com/sourcenetwork/defradb/db/container"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

// valuesNode contains a collection
Expand Down
2 changes: 1 addition & 1 deletion planner/versionedscan.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/sourcenetwork/defradb/core"
"github.com/sourcenetwork/defradb/db/fetcher"
"github.com/sourcenetwork/defradb/errors"
"github.com/sourcenetwork/defradb/mapper"
"github.com/sourcenetwork/defradb/planner/mapper"
)

var (
Expand Down

0 comments on commit 2ffd5f3

Please sign in to comment.