IsIndex returns whether the key is an index key.
()
| 341 | |
| 342 | // IsIndex returns whether the key is an index key. |
| 343 | func (p ParsedKey) IsIndex() bool { |
| 344 | return (p.bytePrefix == DefaultPrefix || p.bytePrefix == ByteSplit) && p.ByteType == ByteIndex |
| 345 | } |
| 346 | |
| 347 | // IsSchema returns whether the key is a schema key. |
| 348 | func (p ParsedKey) IsSchema() bool { |
no outgoing calls