-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add search block headers for wal blocks (#963)
* Add search block headers for wal blocks Signed-off-by: Martin Disibio <mdisibio@gmail.com> * changelog Signed-off-by: Martin Disibio <mdisibio@gmail.com>
- Loading branch information
Showing
10 changed files
with
157 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package tempofb | ||
|
||
func (s *SearchPage) Contains(k []byte, v []byte, buffer *KeyValues) bool { | ||
return ContainsTag(s, buffer, k, v) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package tempofb | ||
|
||
// TagContainer is anything with KeyValues (tags). This is implemented by both | ||
// SearchPage and SearchEntry. | ||
type TagContainer interface { | ||
Contains(k []byte, v []byte, buffer *KeyValues) bool | ||
} | ||
|
||
type Trace interface { | ||
TagContainer | ||
StartTimeUnixNano() uint64 | ||
EndTimeUnixNano() uint64 | ||
} | ||
|
||
var _ Trace = (*SearchEntry)(nil) | ||
|
||
type Page interface { | ||
TagContainer | ||
} | ||
|
||
var _ Page = (*SearchPage)(nil) | ||
|
||
type Block interface { | ||
TagContainer | ||
MinDurationNanos() uint64 | ||
MaxDurationNanos() uint64 | ||
} | ||
|
||
var _ Block = (*SearchBlockHeader)(nil) | ||
var _ Block = (*SearchBlockHeaderMutable)(nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.