Class FingerprintGenerator
java.lang.Object
org.apache.druid.segment.metadata.FingerprintGenerator
Utility to generate schema fingerprint which is used to ensure schema uniqueness in the metadata database.
Note, that the generated fingerprint is independent of the column order.
-
Constructor Summary
ConstructorsConstructorDescriptionFingerprintGenerator(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptiongenerateFingerprint(SchemaPayload schemaPayload, String dataSource, int version) Generates fingerprint or hash string for an object using SHA-256 hash algorithm.protected RowSignaturegetLexicographicallySortedSignature(RowSignature rowSignature)
-
Constructor Details
-
FingerprintGenerator
@Inject public FingerprintGenerator(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
generateFingerprint
Generates fingerprint or hash string for an object using SHA-256 hash algorithm. -
getLexicographicallySortedSignature
-