add formatted printing of stored rows
fix critcal bug in prefix matching on stored row keys
This commit is contained in:
parent
9bebbec267
commit
fda861d4e7
@ -407,13 +407,14 @@ func (s *StoredRow) Value() []byte {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *StoredRow) String() string {
|
func (s *StoredRow) String() string {
|
||||||
return fmt.Sprintf("")
|
return fmt.Sprintf("Document: %s Field %d, Value: %s", s.doc, s.field, s.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *StoredRow) ScanPrefixForDoc() []byte {
|
func (s *StoredRow) ScanPrefixForDoc() []byte {
|
||||||
buf := new(bytes.Buffer)
|
buf := new(bytes.Buffer)
|
||||||
buf.WriteByte('s')
|
buf.WriteByte('s')
|
||||||
buf.Write(s.doc)
|
buf.Write(s.doc)
|
||||||
|
buf.WriteByte(BYTE_SEPARATOR)
|
||||||
return buf.Bytes()
|
return buf.Bytes()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user