UUIDFieldIndex is used to extract a field from an object using reflection and builds an index on that field by treating it as a UUID. This is an optimization to using a StringFieldIndex as the UUID can be more compactly represented in byte form.
| 512 | // it as a UUID. This is an optimization to using a StringFieldIndex |
| 513 | // as the UUID can be more compactly represented in byte form. |
| 514 | type UUIDFieldIndex struct { |
| 515 | Field string |
| 516 | } |
| 517 | |
| 518 | func (u *UUIDFieldIndex) FromObject(obj interface{}) (bool, []byte, error) { |
| 519 | v := reflect.ValueOf(obj) |
nothing calls this directly
no outgoing calls
no test coverage detected