()
| 305 | } |
| 306 | |
| 307 | func (p ParsedKey) String() string { |
| 308 | if p.IsIndex() { |
| 309 | return fmt.Sprintf("UID: %v, Attr: %v, IsIndex: true, Term: %v", p.Uid, p.Attr, []byte(p.Term)) |
| 310 | } else if p.IsCountOrCountRev() { |
| 311 | return fmt.Sprintf("UID: %v, Attr: %v, IsCount/Ref: true, Count: %v", p.Uid, p.Attr, p.Count) |
| 312 | } else { |
| 313 | return fmt.Sprintf("UID: %v, Attr: %v, Data key, prefix; %v, byte: %v", p.Uid, p.Attr, p.bytePrefix, p.ByteType) |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | // IsData returns whether the key is a data key. |
| 318 | func (p ParsedKey) IsData() bool { |
nothing calls this directly
no test coverage detected