MCPcopy Create free account
hub / github.com/crate/crate / sanitizeValue

Method sanitizeValue

server/src/main/java/io/crate/types/UUIDType.java:146–154  ·  view source on GitHub ↗
(Object value)

Source from the content-addressed store, hash-verified

144 }
145
146 @Override
147 public UUID sanitizeValue(Object value) {
148 return switch (value) {
149 case null -> null;
150 case UUID uuid -> uuid;
151 case String str -> UUID.fromString(str);
152 default -> throw new ConversionException(value, this);
153 };
154 }
155
156 @Override
157 public UUID implicitCast(Object value) throws IllegalArgumentException, ClassCastException {

Callers 1

implicitCastMethod · 0.95

Calls 1

fromStringMethod · 0.45

Tested by

no test coverage detected