FeatureBase Renaming: changing go.mod module name for featurebase

This commit is contained in:
Mahesh Arumugam 2021-07-19 09:20:30 -07:00
parent 153dea6e1d
commit 858f889745
235 changed files with 635 additions and 693 deletions

View file

@ -6,9 +6,9 @@ Fixes #
## Pull request checklist
- [ ] I have read the [contributing guide](https://github.com/pilosa/pilosa/blob/master/CONTRIBUTING.md).
- [ ] I have read the [contributing guide](https://github.com/molecula/featurebase/blob/master/CONTRIBUTING.md).
- [ ] I have agreed to the [Contributor License Agreement](https://cla-assistant.io/pilosa/pilosa).
- [ ] I have updated the [documentation](https://github.com/pilosa/pilosa/tree/master/docs).
- [ ] I have updated the [documentation](https://github.com/molecula/docs).
- [ ] I have resolved any merge conflicts.
- [ ] I have included tests that cover my changes.
- [ ] All new and existing tests pass.

View file

@ -13,7 +13,7 @@ BRANCH_ID := $(BRANCH)-$(GOOS)-$(GOARCH)
BUILD_TIME := $(shell date -u +%FT%T%z)
SHARD_WIDTH = 20
COMMIT := $(shell git describe --exact-match >/dev/null 2>&1 || git rev-parse --short HEAD)
LDFLAGS="-X github.com/pilosa/pilosa/v2.Version=$(VERSION) -X github.com/pilosa/pilosa/v2.BuildTime=$(BUILD_TIME) -X github.com/pilosa/pilosa/v2.Variant=$(VARIANT) -X github.com/pilosa/pilosa/v2.Commit=$(COMMIT) -X github.com/pilosa/pilosa/v2.TrialDeadline=$(TRIAL_DEADLINE)"
LDFLAGS="-X github.com/molecula/featurebase/v2.Version=$(VERSION) -X github.com/molecula/featurebase/v2.BuildTime=$(BUILD_TIME) -X github.com/molecula/featurebase/v2.Variant=$(VARIANT) -X github.com/molecula/featurebase/v2.Commit=$(COMMIT) -X github.com/molecula/featurebase/v2.TrialDeadline=$(TRIAL_DEADLINE)"
GO_VERSION=1.16.3
DOCKER_BUILD= # set to 1 to use `docker-build` instead of `build` when creating a release
BUILD_TAGS += shardwidth$(SHARD_WIDTH)
@ -165,11 +165,11 @@ build-lattice:
# `go generate` protocol buffers
generate-protoc: require-protoc require-protoc-gen-gofast
$(GO) generate github.com/pilosa/pilosa/v2/pb
$(GO) generate github.com/molecula/featurebase/v2/pb
# `go generate` statik assets (lattice UI)
generate-statik: build-lattice require-statik
$(GO) generate github.com/pilosa/pilosa/v2/statik
$(GO) generate github.com/molecula/featurebase/v2/statik
# `go generate` statik assets (lattice UI) in Docker
generate-statik-docker: build-lattice
@ -177,7 +177,7 @@ generate-statik-docker: build-lattice
# `go generate` stringers
generate-stringer:
$(GO) generate github.com/pilosa/pilosa/v2
$(GO) generate github.com/molecula/featurebase/v2
generate-pql: require-peg
cd pql && peg -inline pql.peg && cd ..
@ -188,7 +188,7 @@ generate-proto-grpc: require-protoc require-protoc-gen-go
# TODO: Modify above commands and remove the below mv if possible.
# See https://go-review.googlesource.com/c/protobuf/+/219298/ for info on --go-opt
# I couldn't get it to work during development - Cody
cp -r proto/github.com/pilosa/pilosa/v2/proto/ proto/
cp -r proto/github.com/molecula/featurebase/v2/proto/ proto/
rm -rf proto/github.com
# `go generate` all needed packages

View file

@ -1,63 +1,5 @@
<p>
<a href="https://www.pilosa.com">
<img src="https://www.pilosa.com/img/logo.svg" width="50%">
</a>
</p>
## Our private fork of [Pilosa](https://github.com/pilosa/pilosa), a distributed bitmap index
- [Docs](#docs)
- [Getting Started](#getting-started)
- [Data Model](#data-model)
- [Query Language](#query-language)
- [Client Libraries](#client-libraries)
- [Get Support](#get-support)
- [Contributing](#contributing)
## Docs
# FeatureBase, a distributed bitmap index
See our [internal documentation](https://internal-docs.molecula.cloud), which includes all [external documentation](https://docs.molecula.cloud), plus many internal-only pages, listed under the "Internal" heading in the main navigation bar.
The [documentation](https://www.pilosa.com/docs/) for the open source fork is also available, but is outdated for most technical details. Conceptual explanations and [technical blog posts](https://www.pilosa.com/blog/) may still be informative.
## Getting Started
1. [Install Pilosa](https://www.pilosa.com/docs/latest/installation/#build-from-source).
Optionally, to include Lattice, the in-browser UI, follow the "Build from source" instructions, and run `make generate-statik` before `make install`. When you run a local Pilosa server on the default host, for example, you can access Lattice at [localhost:10101](http://localhost:10101).
2. [Start Pilosa](https://www.pilosa.com/docs/getting-started/#starting-pilosa) with the default configuration:
```shell
pilosa server
```
and verify that it's running:
```shell
curl localhost:10101/status
```
3. Follow along with the [Sample Project](https://internal-docs.molecula.cloud/tutorials/getting-started) to get a better understanding of Pilosa's capabilities.
## Data Model
Check out how the Pilosa [Data Model](https://www.pilosa.com/docs/data-model/) works.
## Query Language
You can interact with Pilosa directly in the console using the [Pilosa Query Language](https://internal-docs.molecula.cloud/explanations/pql-intro) (PQL).
## Client Libraries
Three client libraries were supported for the open source fork: [Go](https://www.pilosa.com/docs/client-libraries/#go), (https://www.pilosa.com/docs/client-libraries/#java), (https://www.pilosa.com/docs/client-libraries/#python). Of these, only the Go client has seen significant use and development in the private fork, and it has now been incorporated into this repository, in [the `client` directory](https://github.com/molecula/pilosa/tree/master/client)
## License
Pilosa is licensed under the Apache License, Version 2.0.
A copy of the license is located in [github.com/molecula/pilosa/LICENSE](https://github.com/pilosa/molecula/blob/master/LICENSE).
More details about licensing are found in [github.com/molecula/pilosa/NOTICE](https://github.com/molecula/pilosa/blob/master/NOTICE).
Follow along with the [Sample Project](https://internal-docs.molecula.cloud/tutorials/getting-started) to get a better understanding of FeatureBase's capabilities.

12
api.go
View file

@ -34,12 +34,12 @@ import (
"sync"
"time"
"github.com/pilosa/pilosa/v2/disco"
"github.com/pilosa/pilosa/v2/pql"
"github.com/pilosa/pilosa/v2/roaring"
"github.com/pilosa/pilosa/v2/stats"
"github.com/pilosa/pilosa/v2/topology"
"github.com/pilosa/pilosa/v2/tracing"
"github.com/molecula/featurebase/v2/disco"
"github.com/molecula/featurebase/v2/pql"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v2/stats"
"github.com/molecula/featurebase/v2/topology"
"github.com/molecula/featurebase/v2/tracing"
"github.com/pkg/errors"
"golang.org/x/sync/errgroup"
)

View file

@ -19,8 +19,8 @@ import (
"crypto/tls"
"sync"
"github.com/pilosa/pilosa/v2/logger"
pb "github.com/pilosa/pilosa/v2/proto"
"github.com/molecula/featurebase/v2/logger"
pb "github.com/molecula/featurebase/v2/proto"
"github.com/pkg/errors"
"google.golang.org/grpc"
"google.golang.org/grpc/connectivity"

View file

@ -25,12 +25,12 @@ import (
"testing"
"time"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/boltdb"
"github.com/pilosa/pilosa/v2/http"
"github.com/pilosa/pilosa/v2/server"
"github.com/pilosa/pilosa/v2/test"
. "github.com/pilosa/pilosa/v2/vprint" // nolint:staticcheck
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/boltdb"
"github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/test"
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
)
func TestAPI_Import(t *testing.T) {

View file

@ -15,7 +15,7 @@
package pilosa
import (
"github.com/pilosa/pilosa/v2/testhook"
"github.com/molecula/featurebase/v2/testhook"
)
var NewAuditor func() testhook.Auditor = NewNopAuditor

View file

@ -18,7 +18,7 @@ import (
"fmt"
"reflect"
"github.com/pilosa/pilosa/v2/testhook"
"github.com/molecula/featurebase/v2/testhook"
)
// These audit hooks are desireable during testing, but not in

View file

@ -19,8 +19,8 @@ import (
"os"
"reflect"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/testhook"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/testhook"
)
// AuditLeaksOn is a global switch to turn on resource

View file

@ -21,9 +21,9 @@ import (
"reflect"
"sync"
"github.com/pilosa/pilosa/v2/roaring"
txkey "github.com/pilosa/pilosa/v2/short_txkey"
. "github.com/pilosa/pilosa/v2/vprint"
"github.com/molecula/featurebase/v2/roaring"
txkey "github.com/molecula/featurebase/v2/short_txkey"
. "github.com/molecula/featurebase/v2/vprint"
)
// blueGreenTx runs two Tx together and notices differences in their output.

View file

@ -25,7 +25,7 @@ import (
cryrand "crypto/rand"
. "github.com/pilosa/pilosa/v2/vprint" // nolint:staticcheck
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
)
var _ = context.Background

12
bolt.go
View file

@ -28,16 +28,16 @@ import (
"sync/atomic"
"time"
"github.com/pilosa/pilosa/v2/hash"
"github.com/pilosa/pilosa/v2/roaring"
"github.com/pilosa/pilosa/v2/storage"
. "github.com/pilosa/pilosa/v2/vprint"
"github.com/molecula/featurebase/v2/hash"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v2/storage"
. "github.com/molecula/featurebase/v2/vprint"
// On Bolt only, we still use the long txkey, because
// this allows Max() to work readily.
//
"github.com/pilosa/pilosa/v2/short_txkey"
txkey "github.com/pilosa/pilosa/v2/txkey"
"github.com/molecula/featurebase/v2/short_txkey"
txkey "github.com/molecula/featurebase/v2/txkey"
"github.com/pkg/errors"
bolt "go.etcd.io/bbolt"
)

View file

@ -20,8 +20,8 @@ import (
"os"
"testing"
"github.com/pilosa/pilosa/v2/roaring"
. "github.com/pilosa/pilosa/v2/vprint" // nolint:staticcheck
"github.com/molecula/featurebase/v2/roaring"
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
)
// helpers, each runs their own new txn, and commits if a change/delete

View file

@ -25,7 +25,7 @@ import (
"sync"
"time"
"github.com/pilosa/pilosa/v2"
"github.com/molecula/featurebase/v2"
"github.com/pkg/errors"
bolt "go.etcd.io/bbolt"

View file

@ -22,10 +22,10 @@ import (
"testing"
"time"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/boltdb"
"github.com/pilosa/pilosa/v2/testhook"
"github.com/pilosa/pilosa/v2/topology"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/boltdb"
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v2/topology"
)
//var vv = pilosa.VV

View file

@ -17,7 +17,7 @@ package pilosa
import (
"fmt"
"github.com/pilosa/pilosa/v2/topology"
"github.com/molecula/featurebase/v2/topology"
"github.com/pkg/errors"
)

2
bsi.go
View file

@ -17,7 +17,7 @@ package pilosa
import (
"math/bits"
"github.com/pilosa/pilosa/v2/roaring"
"github.com/molecula/featurebase/v2/roaring"
)
// bsiData contains BSI-structured data.

View file

@ -23,9 +23,9 @@ import (
"sync"
"time"
"github.com/pilosa/pilosa/v2/lru"
pb "github.com/pilosa/pilosa/v2/proto"
"github.com/pilosa/pilosa/v2/stats"
"github.com/molecula/featurebase/v2/lru"
pb "github.com/molecula/featurebase/v2/proto"
"github.com/molecula/featurebase/v2/stats"
"github.com/pkg/errors"
)

View file

@ -18,7 +18,7 @@ import (
"reflect"
"testing"
"github.com/pilosa/pilosa/v2"
"github.com/molecula/featurebase/v2"
)
// Ensure cache stays constrained to its configured size.

View file

@ -18,9 +18,9 @@ import (
"fmt"
"io"
"github.com/pilosa/pilosa/v2/roaring"
txkey "github.com/pilosa/pilosa/v2/short_txkey"
. "github.com/pilosa/pilosa/v2/vprint"
"github.com/molecula/featurebase/v2/roaring"
txkey "github.com/molecula/featurebase/v2/short_txkey"
. "github.com/molecula/featurebase/v2/vprint"
)
// catcher is useful to report error locations with a

View file

@ -19,8 +19,8 @@ import (
"io"
"time"
pnet "github.com/pilosa/pilosa/v2/net"
"github.com/pilosa/pilosa/v2/topology"
pnet "github.com/molecula/featurebase/v2/net"
"github.com/molecula/featurebase/v2/topology"
)
// Bit represents the intersection of a row and a column. It can be specified by
@ -48,7 +48,7 @@ type FieldValue struct {
// While I understand that putting the entire Client behind an interface might require this many methods,
// I don't want to let it go unquestioned.
// Another note from Travis: I think we eventually want to unify `InternalClient` with
// the `github.com/pilosa/pilosa/v2/client` client.
// the `github.com/molecula/featurebase/v2/client` client.
// Doing that may obviate the need to refactor this.
type InternalClient interface {
InternalQueryClient

View file

@ -17,9 +17,9 @@ package client
import (
"time"
"github.com/pilosa/pilosa/v2/client/egpool"
"github.com/pilosa/pilosa/v2/logger"
"github.com/pilosa/pilosa/v2/roaring"
"github.com/molecula/featurebase/v2/client/egpool"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v2/roaring"
"github.com/pkg/errors"
)

View file

@ -34,13 +34,13 @@ import (
"github.com/golang/protobuf/proto" //nolint:staticcheck
"github.com/opentracing/opentracing-go"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/logger"
pnet "github.com/pilosa/pilosa/v2/net"
"github.com/pilosa/pilosa/v2/pb"
"github.com/pilosa/pilosa/v2/pql"
"github.com/pilosa/pilosa/v2/roaring"
"github.com/pilosa/pilosa/v2/stats"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/logger"
pnet "github.com/molecula/featurebase/v2/net"
"github.com/molecula/featurebase/v2/pb"
"github.com/molecula/featurebase/v2/pql"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v2/stats"
"github.com/pkg/errors"
"golang.org/x/sync/errgroup"
)

View file

@ -20,10 +20,10 @@ import (
"testing"
"time"
"github.com/pilosa/pilosa/v2/disco"
pnet "github.com/pilosa/pilosa/v2/net"
"github.com/pilosa/pilosa/v2/shardwidth"
"github.com/pilosa/pilosa/v2/test"
"github.com/molecula/featurebase/v2/disco"
pnet "github.com/molecula/featurebase/v2/net"
"github.com/molecula/featurebase/v2/shardwidth"
"github.com/molecula/featurebase/v2/test"
"github.com/stretchr/testify/require"
"golang.org/x/sync/errgroup"
)
@ -212,7 +212,7 @@ func TestClientAgainstCluster(t *testing.T) {
_, err = cli.Query(qry)
require.NoErrorf(t, err, "BatchQuery")
// XXX: The following is required to make this test pass. See: https://github.com/pilosa/pilosa/issues/625
// XXX: The following is required to make this test pass. See: https://github.com/molecula/featurebase/issues/625
_, _, err = cli.HTTPRequest("POST", "/recalculate-caches", nil, nil)
require.NoErrorf(t, err, "POST /recalculate-caches")

View file

@ -23,7 +23,7 @@ import (
"reflect"
"testing"
pnet "github.com/pilosa/pilosa/v2/net"
pnet "github.com/molecula/featurebase/v2/net"
)
func TestQueryWithError(t *testing.T) {

View file

@ -20,7 +20,7 @@ package client
import (
"sync"
pnet "github.com/pilosa/pilosa/v2/net"
pnet "github.com/molecula/featurebase/v2/net"
)
// Cluster contains hosts in a Pilosa cluster.

View file

@ -20,7 +20,7 @@ package client
import (
"testing"
pnet "github.com/pilosa/pilosa/v2/net"
pnet "github.com/molecula/featurebase/v2/net"
)
func TestNewClusterWithHost(t *testing.T) {

View file

@ -23,7 +23,7 @@ import (
"strings"
"time"
"github.com/pilosa/pilosa/v2/client"
"github.com/molecula/featurebase/v2/client"
)
// Format is the format of the data in the CSV file.

View file

@ -22,8 +22,8 @@ import (
"strings"
"testing"
"github.com/pilosa/pilosa/v2/client"
"github.com/pilosa/pilosa/v2/client/csv"
"github.com/molecula/featurebase/v2/client"
"github.com/molecula/featurebase/v2/client/csv"
)
func TestCSVIterate(t *testing.T) {

View file

@ -21,9 +21,9 @@ import (
"strings"
"testing"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/client"
"github.com/pilosa/pilosa/v2/client/csv"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/client"
"github.com/molecula/featurebase/v2/client/csv"
)
func TestCSVColumnIterator(t *testing.T) {

View file

@ -24,7 +24,7 @@ Usage:
import (
"fmt"
"github.com/pilosa/pilosa/v2/client"
"github.com/molecula/featurebase/v2/client"
)
// Create a Client instance

View file

@ -18,7 +18,7 @@ import (
"errors"
"testing"
"github.com/pilosa/pilosa/v2/client/egpool"
"github.com/molecula/featurebase/v2/client/egpool"
)
func TestEGPool(t *testing.T) {

View file

@ -26,7 +26,7 @@ import (
"sync"
"time"
"github.com/pilosa/pilosa/v2/pql"
"github.com/molecula/featurebase/v2/pql"
"github.com/pkg/errors"
)

View file

@ -26,8 +26,8 @@ import (
"testing"
"time"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/pql"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/pql"
"github.com/pkg/errors"
)

View file

@ -20,7 +20,7 @@ package client_test
import (
"testing"
"github.com/pilosa/pilosa/v2/client"
"github.com/molecula/featurebase/v2/client"
)
func TestColumnShard(t *testing.T) {

View file

@ -21,7 +21,7 @@ import (
"encoding/json"
"fmt"
"github.com/pilosa/pilosa/v2/pb"
"github.com/molecula/featurebase/v2/pb"
)
// QueryResponse types.

View file

@ -24,7 +24,7 @@ import (
"reflect"
"testing"
"github.com/pilosa/pilosa/v2/pb"
"github.com/molecula/featurebase/v2/pb"
)
func TestNewRowResultFromInternal(t *testing.T) {

View file

@ -20,7 +20,7 @@ package client
import (
"sync"
pnet "github.com/pilosa/pilosa/v2/net"
pnet "github.com/molecula/featurebase/v2/net"
)
type shardNodes struct {

View file

@ -23,11 +23,11 @@ import (
"sync"
"time"
"github.com/pilosa/pilosa/v2/disco"
"github.com/pilosa/pilosa/v2/logger"
"github.com/pilosa/pilosa/v2/roaring"
"github.com/pilosa/pilosa/v2/topology"
"github.com/pilosa/pilosa/v2/tracing"
"github.com/molecula/featurebase/v2/disco"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v2/topology"
"github.com/molecula/featurebase/v2/tracing"
"github.com/pkg/errors"
"golang.org/x/sync/errgroup"
)

View file

@ -25,11 +25,11 @@ import (
"time"
"github.com/davecgh/go-spew/spew"
pnet "github.com/pilosa/pilosa/v2/net"
"github.com/pilosa/pilosa/v2/roaring"
"github.com/pilosa/pilosa/v2/testhook"
"github.com/pilosa/pilosa/v2/topology"
. "github.com/pilosa/pilosa/v2/vprint" // nolint:staticcheck
pnet "github.com/molecula/featurebase/v2/net"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v2/topology"
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
"github.com/pkg/errors"
)

2
cmd.go
View file

@ -17,7 +17,7 @@ package pilosa
import (
"io"
"github.com/pilosa/pilosa/v2/logger"
"github.com/molecula/featurebase/v2/logger"
)
// CmdIO holds standard unix inputs and outputs.

View file

@ -18,7 +18,7 @@ import (
"context"
"io"
"github.com/pilosa/pilosa/v2/ctl"
"github.com/molecula/featurebase/v2/ctl"
"github.com/spf13/cobra"
)

View file

@ -26,10 +26,10 @@ import (
"io/ioutil"
gohttp "net/http"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/http"
pnet "github.com/pilosa/pilosa/v2/net"
. "github.com/pilosa/pilosa/v2/vprint" // nolint:staticcheck
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/http"
pnet "github.com/molecula/featurebase/v2/net"
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
"os"
"strconv"

View file

@ -21,7 +21,7 @@ import (
"github.com/spf13/cobra"
"github.com/pilosa/pilosa/v2/ctl"
"github.com/molecula/featurebase/v2/ctl"
)
var checker *ctl.CheckCommand

View file

@ -18,7 +18,7 @@ import (
"context"
"io"
"github.com/pilosa/pilosa/v2/ctl"
"github.com/molecula/featurebase/v2/ctl"
"github.com/spf13/cobra"
)

View file

@ -20,8 +20,8 @@ import (
"github.com/spf13/cobra"
"github.com/pilosa/pilosa/v2/ctl"
"github.com/pilosa/pilosa/v2/server"
"github.com/molecula/featurebase/v2/ctl"
"github.com/molecula/featurebase/v2/server"
)
var conf *ctl.ConfigCommand

View file

@ -21,7 +21,7 @@ import (
"github.com/spf13/cobra"
"github.com/pilosa/pilosa/v2/ctl"
"github.com/molecula/featurebase/v2/ctl"
)
var inspector *ctl.InspectCommand

View file

@ -20,7 +20,7 @@ import (
"github.com/spf13/cobra"
"github.com/pilosa/pilosa/v2/ctl"
"github.com/molecula/featurebase/v2/ctl"
)
var Exporter *ctl.ExportCommand

View file

@ -18,7 +18,7 @@ import (
"strings"
"testing"
"github.com/pilosa/pilosa/v2/cmd"
"github.com/molecula/featurebase/v2/cmd"
)
func TestExportHelp(t *testing.T) {

View file

@ -20,7 +20,7 @@ import (
"github.com/spf13/cobra"
"github.com/pilosa/pilosa/v2/ctl"
"github.com/molecula/featurebase/v2/ctl"
)
var generateConf *ctl.GenerateConfigCommand

View file

@ -18,8 +18,8 @@ import (
"context"
"io"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/ctl"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/ctl"
"github.com/spf13/cobra"
)

View file

@ -18,10 +18,10 @@ import (
"strings"
"testing"
"github.com/pilosa/pilosa/v2"
"github.com/molecula/featurebase/v2"
"github.com/pilosa/pilosa/v2/cmd"
"github.com/pilosa/pilosa/v2/pql"
"github.com/molecula/featurebase/v2/cmd"
"github.com/molecula/featurebase/v2/pql"
)
func TestImportHelp(t *testing.T) {

View file

@ -29,8 +29,8 @@ import (
"strings"
"time"
"github.com/pilosa/pilosa/v2"
phttp "github.com/pilosa/pilosa/v2/http"
"github.com/molecula/featurebase/v2"
phttp "github.com/molecula/featurebase/v2/http"
"golang.org/x/sync/errgroup"
)

View file

@ -21,7 +21,7 @@ import (
"fmt"
"os"
"github.com/pilosa/pilosa/v2/cmd"
"github.com/molecula/featurebase/v2/cmd"
)
func main() {

View file

@ -26,10 +26,10 @@ import (
"strings"
"time"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/http"
"github.com/pilosa/pilosa/v2/pql"
. "github.com/pilosa/pilosa/v2/vprint" // nolint:staticcheck
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/pql"
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
)
// RandomQueryConfig

View file

@ -20,12 +20,12 @@ import (
"strconv"
"testing"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/boltdb"
"github.com/pilosa/pilosa/v2/http"
"github.com/pilosa/pilosa/v2/server"
"github.com/pilosa/pilosa/v2/test"
. "github.com/pilosa/pilosa/v2/vprint" // nolint:staticcheck
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/boltdb"
"github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/test"
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
)
func Test_RandomQuery(t *testing.T) {

View file

@ -21,7 +21,7 @@ import (
"io"
"strconv"
"github.com/pilosa/pilosa/v2/ctl"
"github.com/molecula/featurebase/v2/ctl"
"github.com/spf13/cobra"
)

View file

@ -18,7 +18,7 @@ import (
"context"
"io"
"github.com/pilosa/pilosa/v2/ctl"
"github.com/molecula/featurebase/v2/ctl"
"github.com/spf13/cobra"
)

View file

@ -19,7 +19,7 @@ import (
"io"
"strings"
"github.com/pilosa/pilosa/v2"
"github.com/molecula/featurebase/v2"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"

View file

@ -25,8 +25,8 @@ import (
"time"
"github.com/pilosa/pilosa/v2/cmd"
"github.com/pilosa/pilosa/v2/testhook"
"github.com/molecula/featurebase/v2/cmd"
"github.com/molecula/featurebase/v2/testhook"
"github.com/spf13/cobra"
)

View file

@ -17,10 +17,10 @@ package cmd
import (
"io"
"github.com/pilosa/pilosa/v2/ctl"
"github.com/pilosa/pilosa/v2/server"
"github.com/pilosa/pilosa/v2/tracing"
"github.com/pilosa/pilosa/v2/tracing/opentracing"
"github.com/molecula/featurebase/v2/ctl"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/tracing"
"github.com/molecula/featurebase/v2/tracing/opentracing"
"github.com/pkg/errors"
"github.com/spf13/cobra"
jaegercfg "github.com/uber/jaeger-client-go/config"

View file

@ -20,10 +20,10 @@ import (
"testing"
"time"
"github.com/pilosa/pilosa/v2/cmd"
_ "github.com/pilosa/pilosa/v2/test"
"github.com/pilosa/pilosa/v2/testhook"
"github.com/pilosa/pilosa/v2/toml"
"github.com/molecula/featurebase/v2/cmd"
_ "github.com/molecula/featurebase/v2/test"
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v2/toml"
"github.com/pkg/errors"
)

View file

@ -30,10 +30,10 @@ import (
"strings"
"time"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/http"
pnet "github.com/pilosa/pilosa/v2/net"
. "github.com/pilosa/pilosa/v2/vprint" // nolint:staticcheck
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/http"
pnet "github.com/molecula/featurebase/v2/net"
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
)
// slurp: slurp is a load-tester for importing bulk data.

View file

@ -24,10 +24,10 @@ import (
"os"
"path/filepath"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/http"
"github.com/pilosa/pilosa/v2/server"
"github.com/pilosa/pilosa/v2/topology"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/topology"
"golang.org/x/sync/errgroup"
)

View file

@ -22,8 +22,8 @@ import (
"path/filepath"
"syscall"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/roaring"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/roaring"
"github.com/pkg/errors"
)

View file

@ -23,7 +23,7 @@ import (
"context"
"github.com/pilosa/pilosa/v2/testhook"
"github.com/molecula/featurebase/v2/testhook"
)
func TestCheckCommand_RunCacheFile(t *testing.T) {

View file

@ -21,8 +21,8 @@ import (
"io"
"github.com/cespare/xxhash"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/server"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/server"
)
// ChkSumCommand represents a command for backing up a Pilosa node.

View file

@ -15,9 +15,9 @@
package ctl
import (
"github.com/pilosa/pilosa/v2/http"
"github.com/pilosa/pilosa/v2/logger"
"github.com/pilosa/pilosa/v2/server"
"github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v2/server"
"github.com/pkg/errors"
"github.com/spf13/pflag"
)

View file

@ -20,8 +20,8 @@ import (
"io"
toml "github.com/pelletier/go-toml"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/server"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/server"
)
// ConfigCommand represents a command for printing a default config.

View file

@ -22,7 +22,7 @@ import (
"strings"
"testing"
"github.com/pilosa/pilosa/v2/server"
"github.com/molecula/featurebase/v2/server"
)
func TestConfigCommand_Run(t *testing.T) {

View file

@ -19,8 +19,8 @@ import (
"io"
"os"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/server"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/server"
"github.com/pkg/errors"
)

View file

@ -21,8 +21,8 @@ import (
"strings"
"testing"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/test"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/test"
)
func TestExportCommand_Validation(t *testing.T) {

View file

@ -20,8 +20,8 @@ import (
"io"
"github.com/pelletier/go-toml"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/server"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/server"
"github.com/pkg/errors"
)

View file

@ -26,10 +26,10 @@ import (
"strconv"
"time"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/http"
"github.com/pilosa/pilosa/v2/pql"
"github.com/pilosa/pilosa/v2/server"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/pql"
"github.com/molecula/featurebase/v2/server"
"github.com/pkg/errors"
)

View file

@ -27,9 +27,9 @@ import (
"testing"
"time"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/test"
"github.com/pilosa/pilosa/v2/testhook"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/test"
"github.com/molecula/featurebase/v2/testhook"
)
func TestImportCommand_Validation(t *testing.T) {

View file

@ -32,9 +32,9 @@ import (
"unsafe"
"github.com/gogo/protobuf/proto"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/pb"
"github.com/pilosa/pilosa/v2/roaring"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/pb"
"github.com/molecula/featurebase/v2/roaring"
"github.com/pkg/errors"
)

View file

@ -22,7 +22,7 @@ import (
"strings"
"testing"
"github.com/pilosa/pilosa/v2/testhook"
"github.com/molecula/featurebase/v2/testhook"
)
func TestInspectCommand_Run(t *testing.T) {

View file

@ -22,7 +22,7 @@ import (
_ "net/http/pprof"
"github.com/pilosa/pilosa/v2/testhook"
"github.com/molecula/featurebase/v2/testhook"
)
func TestMain(m *testing.M) {

View file

@ -19,8 +19,8 @@ import (
"fmt"
"io"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/rbf"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/rbf"
)
// RBFCheckCommand represents a command for running a consistency check on RBF.

View file

@ -21,8 +21,8 @@ import (
"io"
"strings"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/rbf"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/rbf"
)
// RBFDumpCommand represents a command for dumping raw data for an RBF page.

View file

@ -19,8 +19,8 @@ import (
"fmt"
"io"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/rbf"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/rbf"
)
// RBFPageCommand represents a command for printing data for a single RBF page.

View file

@ -19,9 +19,9 @@ import (
"fmt"
"io"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/rbf"
"github.com/pilosa/pilosa/v2/txkey"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/rbf"
"github.com/molecula/featurebase/v2/txkey"
)
// RBFPagesCommand represents a command for printing a list of RBF page metadata.

View file

@ -26,9 +26,9 @@ import (
"strconv"
"strings"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/server"
"github.com/pilosa/pilosa/v2/topology"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/topology"
"golang.org/x/sync/errgroup"
)

View file

@ -18,8 +18,8 @@ import (
"fmt"
"time"
"github.com/pilosa/pilosa/v2/server"
"github.com/pilosa/pilosa/v2/storage"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/storage"
"github.com/spf13/cobra"
)

View file

@ -18,7 +18,7 @@ import (
"bytes"
"testing"
"github.com/pilosa/pilosa/v2/server"
"github.com/molecula/featurebase/v2/server"
"github.com/spf13/cobra"
)

View file

@ -23,12 +23,12 @@ import (
"strings"
"sync"
rbfcfg "github.com/pilosa/pilosa/v2/rbf/cfg"
txkey "github.com/pilosa/pilosa/v2/short_txkey"
"github.com/pilosa/pilosa/v2/storage"
rbfcfg "github.com/molecula/featurebase/v2/rbf/cfg"
txkey "github.com/molecula/featurebase/v2/short_txkey"
"github.com/molecula/featurebase/v2/storage"
"github.com/pkg/errors"
. "github.com/pilosa/pilosa/v2/vprint" // nolint:staticcheck
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
)
var _ = sort.Sort

View file

@ -21,11 +21,11 @@ import (
"strings"
"testing"
"github.com/pilosa/pilosa/v2/rbf"
"github.com/pilosa/pilosa/v2/shardwidth"
txkey "github.com/pilosa/pilosa/v2/short_txkey"
"github.com/pilosa/pilosa/v2/testhook"
. "github.com/pilosa/pilosa/v2/vprint" // nolint:staticcheck
"github.com/molecula/featurebase/v2/rbf"
"github.com/molecula/featurebase/v2/shardwidth"
txkey "github.com/molecula/featurebase/v2/short_txkey"
"github.com/molecula/featurebase/v2/testhook"
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
)
// Shard per db evaluation

View file

@ -20,12 +20,12 @@ import (
"reflect"
"testing"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/boltdb"
"github.com/pilosa/pilosa/v2/http"
"github.com/pilosa/pilosa/v2/server"
"github.com/pilosa/pilosa/v2/test"
. "github.com/pilosa/pilosa/v2/vprint" // nolint:staticcheck
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/boltdb"
"github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/test"
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
)
func TestAPI_SimplerOneNode_ImportColumnKey(t *testing.T) {

View file

@ -21,8 +21,8 @@ import (
"testing"
"time"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/test"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/test"
"github.com/stretchr/testify/require"
)

View file

@ -24,7 +24,7 @@ import (
"sync"
"time"
"github.com/pilosa/pilosa/v2/logger"
"github.com/molecula/featurebase/v2/logger"
"github.com/pkg/errors"
)
@ -137,11 +137,11 @@ func (d *diagnosticsCollector) compareVersion(value string) error {
localVersion := versionSegments(d.version)
if localVersion[0] < currentVersion[0] { //Major
return fmt.Errorf("you are running Pilosa %s, a newer version (%s) is available: https://github.com/pilosa/pilosa/releases", d.version, value)
return fmt.Errorf("you are running Pilosa %s, a newer version (%s) is available: https://github.com/molecula/featurebase/releases", d.version, value)
} else if localVersion[1] < currentVersion[1] && localVersion[0] == currentVersion[0] { // Minor
return fmt.Errorf("you are running Pilosa %s, the latest minor release is %s: https://github.com/pilosa/pilosa/releases", d.version, value)
return fmt.Errorf("you are running Pilosa %s, the latest minor release is %s: https://github.com/molecula/featurebase/releases", d.version, value)
} else if localVersion[2] < currentVersion[2] && localVersion[0] == currentVersion[0] && localVersion[1] == currentVersion[1] { // Patch
return fmt.Errorf("there is a new patch release of Pilosa available: %s: https://github.com/pilosa/pilosa/releases", value)
return fmt.Errorf("there is a new patch release of Pilosa available: %s: https://github.com/molecula/featurebase/releases", value)
}
return nil

View file

@ -23,7 +23,7 @@ import (
"strings"
"testing"
"github.com/pilosa/pilosa/v2/logger"
"github.com/molecula/featurebase/v2/logger"
)
func TestDiagnosticsClient(t *testing.T) {

View file

@ -19,13 +19,13 @@ import (
"time"
"github.com/gogo/protobuf/proto"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/disco"
pnet "github.com/pilosa/pilosa/v2/net"
"github.com/pilosa/pilosa/v2/pb"
"github.com/pilosa/pilosa/v2/pql"
"github.com/pilosa/pilosa/v2/roaring"
"github.com/pilosa/pilosa/v2/topology"
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/disco"
pnet "github.com/molecula/featurebase/v2/net"
"github.com/molecula/featurebase/v2/pb"
"github.com/molecula/featurebase/v2/pql"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v2/topology"
"github.com/pkg/errors"
)

View file

@ -27,9 +27,9 @@ import (
"sync"
"time"
"github.com/pilosa/pilosa/v2/disco"
"github.com/pilosa/pilosa/v2/logger"
"github.com/pilosa/pilosa/v2/topology"
"github.com/molecula/featurebase/v2/disco"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v2/topology"
"github.com/pkg/errors"
"go.etcd.io/etcd/clientv3"
"go.etcd.io/etcd/clientv3/clientv3util"

View file

@ -20,7 +20,7 @@ import (
"sync"
"time"
"github.com/pilosa/pilosa/v2/disco"
"github.com/molecula/featurebase/v2/disco"
"github.com/pkg/errors"
"go.etcd.io/etcd/clientv3"
"go.etcd.io/etcd/clientv3/clientv3util"

View file

@ -21,9 +21,9 @@ import (
"testing"
"time"
"github.com/pilosa/pilosa/v2/disco"
"github.com/pilosa/pilosa/v2/logger"
"github.com/pilosa/pilosa/v2/testhook"
"github.com/molecula/featurebase/v2/disco"
"github.com/molecula/featurebase/v2/logger"
"github.com/molecula/featurebase/v2/testhook"
"go.etcd.io/etcd/embed"
"go.etcd.io/etcd/etcdserver/api/v3client"
)

View file

@ -14,7 +14,7 @@
package pilosa
import "github.com/pilosa/pilosa/v2/topology"
import "github.com/molecula/featurebase/v2/topology"
// NodeEventType are the types of node events.
type NodeEventType int

View file

@ -31,14 +31,14 @@ import (
"golang.org/x/sync/errgroup"
"github.com/lib/pq"
"github.com/pilosa/pilosa/v2/disco"
"github.com/pilosa/pilosa/v2/pql"
"github.com/pilosa/pilosa/v2/proto"
"github.com/pilosa/pilosa/v2/roaring"
"github.com/pilosa/pilosa/v2/shardwidth"
"github.com/pilosa/pilosa/v2/testhook"
"github.com/pilosa/pilosa/v2/topology"
"github.com/pilosa/pilosa/v2/tracing"
"github.com/molecula/featurebase/v2/disco"
"github.com/molecula/featurebase/v2/pql"
"github.com/molecula/featurebase/v2/proto"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v2/shardwidth"
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v2/topology"
"github.com/molecula/featurebase/v2/tracing"
"github.com/pkg/errors"
)
@ -645,7 +645,7 @@ func (e *executor) executeCall(ctx context.Context, qcx *Qcx, index string, c *p
}
// Fixes #2009
// See: https://github.com/pilosa/pilosa/issues/2009
// See: https://github.com/molecula/featurebase/issues/2009
// TODO: Remove at version 2.0
if e.detectRangeCall(c) {
e.Holder.Logger.Infof("DEPRECATED: Range() is deprecated, please use Row() instead.")

View file

@ -22,8 +22,8 @@ import (
"strconv"
"testing"
"github.com/pilosa/pilosa/v2/pql"
"github.com/pilosa/pilosa/v2/testhook"
"github.com/molecula/featurebase/v2/pql"
"github.com/molecula/featurebase/v2/testhook"
)
func TestExecutor_TranslateRowsOnBool(t *testing.T) {

View file

@ -38,17 +38,17 @@ import (
"github.com/davecgh/go-spew/spew"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/boltdb"
"github.com/pilosa/pilosa/v2/disco"
"github.com/pilosa/pilosa/v2/http"
"github.com/pilosa/pilosa/v2/pql"
"github.com/pilosa/pilosa/v2/proto"
"github.com/pilosa/pilosa/v2/server"
"github.com/pilosa/pilosa/v2/storage"
"github.com/pilosa/pilosa/v2/test"
"github.com/pilosa/pilosa/v2/testhook"
. "github.com/pilosa/pilosa/v2/vprint" // nolint:staticcheck
"github.com/molecula/featurebase/v2"
"github.com/molecula/featurebase/v2/boltdb"
"github.com/molecula/featurebase/v2/disco"
"github.com/molecula/featurebase/v2/http"
"github.com/molecula/featurebase/v2/pql"
"github.com/molecula/featurebase/v2/proto"
"github.com/molecula/featurebase/v2/server"
"github.com/molecula/featurebase/v2/storage"
"github.com/molecula/featurebase/v2/test"
"github.com/molecula/featurebase/v2/testhook"
. "github.com/molecula/featurebase/v2/vprint" // nolint:staticcheck
"github.com/pkg/errors"
)

View file

@ -28,12 +28,12 @@ import (
"sync"
"time"
"github.com/pilosa/pilosa/v2/disco"
"github.com/pilosa/pilosa/v2/pql"
"github.com/pilosa/pilosa/v2/roaring"
"github.com/pilosa/pilosa/v2/stats"
"github.com/pilosa/pilosa/v2/testhook"
"github.com/pilosa/pilosa/v2/tracing"
"github.com/molecula/featurebase/v2/disco"
"github.com/molecula/featurebase/v2/pql"
"github.com/molecula/featurebase/v2/roaring"
"github.com/molecula/featurebase/v2/stats"
"github.com/molecula/featurebase/v2/testhook"
"github.com/molecula/featurebase/v2/tracing"
"github.com/pkg/errors"
)

Some files were not shown because too many files have changed in this diff Show more