Class RandomIdGenerator
java.lang.Object
org.springframework.ai.document.id.RandomIdGenerator
- All Implemented Interfaces:
IdGenerator
A random ID generator that returns a UUID.
- Author:
- Aliakbar Jafarpour, Christian Tzolov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateId
(Object... contents) Generate a unique ID for the given content.
-
Constructor Details
-
RandomIdGenerator
public RandomIdGenerator()
-
-
Method Details
-
generateId
Description copied from interface:IdGenerator
Generate a unique ID for the given content. Note: some generator, such as the the random generator might not dependant on or use the content parameters.- Specified by:
generateId
in interfaceIdGenerator
- Parameters:
contents
- the content to generate an ID for.- Returns:
- the generated ID.
-