-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring compressor #3880
Refactoring compressor #3880
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@@ -27,8 +27,8 @@ import ( | |||
"github.com/sirupsen/logrus/hooks/test" | |||
"github.com/stretchr/testify/require" | |||
"github.com/weaviate/weaviate/adapters/repos/db/lsmkv" | |||
compressionhelpers "github.com/weaviate/weaviate/adapters/repos/db/vector/compressionhelpers" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alias is not needed here
@@ -20,9 +20,9 @@ import ( | |||
"github.com/pkg/errors" | |||
"github.com/weaviate/weaviate/adapters/repos/db/helpers" | |||
"github.com/weaviate/weaviate/adapters/repos/db/priorityqueue" | |||
compressionhelpers "github.com/weaviate/weaviate/adapters/repos/db/vector/compressionhelpers" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alias not needed
@@ -18,11 +18,11 @@ import ( | |||
"github.com/pkg/errors" | |||
"github.com/weaviate/weaviate/adapters/repos/db/helpers" | |||
"github.com/weaviate/weaviate/adapters/repos/db/priorityqueue" | |||
ssdhelpers "github.com/weaviate/weaviate/adapters/repos/db/vector/ssdhelpers" | |||
compressionhelpers "github.com/weaviate/weaviate/adapters/repos/db/vector/compressionhelpers" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alias not needed
@@ -19,7 +19,7 @@ import ( | |||
|
|||
"github.com/pkg/errors" | |||
"github.com/weaviate/weaviate/adapters/repos/db/helpers" | |||
ssdhelpers "github.com/weaviate/weaviate/adapters/repos/db/vector/ssdhelpers" | |||
compressionhelpers "github.com/weaviate/weaviate/adapters/repos/db/vector/compressionhelpers" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alias not needed
@@ -20,7 +20,7 @@ import ( | |||
"github.com/pkg/errors" | |||
"github.com/sirupsen/logrus" | |||
"github.com/weaviate/weaviate/adapters/repos/db/vector/cache" | |||
ssdhelpers "github.com/weaviate/weaviate/adapters/repos/db/vector/ssdhelpers" | |||
compressionhelpers "github.com/weaviate/weaviate/adapters/repos/db/vector/compressionhelpers" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alias not needed
@@ -24,8 +24,8 @@ import ( | |||
|
|||
"github.com/pkg/errors" | |||
"github.com/sirupsen/logrus" | |||
compressionhelpers "github.com/weaviate/weaviate/adapters/repos/db/vector/compressionhelpers" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alias not needed
@@ -26,7 +26,7 @@ import ( | |||
|
|||
"github.com/pkg/errors" | |||
"github.com/stretchr/testify/require" | |||
ssdhelpers "github.com/weaviate/weaviate/adapters/repos/db/vector/ssdhelpers" | |||
compressionhelpers "github.com/weaviate/weaviate/adapters/repos/db/vector/compressionhelpers" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alias not needed
|
||
import ( | ||
"math" | ||
"math/rand" | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
ssdhelpers "github.com/weaviate/weaviate/adapters/repos/db/vector/ssdhelpers" | ||
compressionhelpers "github.com/weaviate/weaviate/adapters/repos/db/vector/compressionhelpers" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alias not needed
|
||
import ( | ||
"fmt" | ||
"sort" | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
compressionhelpers "github.com/weaviate/weaviate/adapters/repos/db/vector/compressionhelpers" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alias not needed
|
||
import ( | ||
"testing" | ||
"time" | ||
|
||
"github.com/stretchr/testify/assert" | ||
compressionhelpers "github.com/weaviate/weaviate/adapters/repos/db/vector/compressionhelpers" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alias not needed
What's being changed:
Rafactoring compressor
Review checklist