Class ClustererConfigFactory

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.jsontype.TypeIdResolver

    public class ClustererConfigFactory
    extends com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
    Registry where clusterers are registered, to make this extensible. If you want to implement a new clusterer, it is likely that it is actually a binning or distance-based clusterer, so you might be able to reuse the kNNClusterer or BinningClusterer by implementing a ClusteringDistance or Keyer instead.
    Author:
    Antonin Delpeuch
    • Field Detail

      • factory

        protected com.fasterxml.jackson.databind.type.TypeFactory factory
    • Constructor Detail

      • ClustererConfigFactory

        public ClustererConfigFactory()
    • Method Detail

      • idFromValueAndType

        public String idFromValueAndType​(Object value,
                                         Class<?> suggestedType)
      • getMechanism

        public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()
      • typeFromId

        public com.fasterxml.jackson.databind.JavaType typeFromId​(com.fasterxml.jackson.databind.DatabindContext context,
                                                                  String id)
        Specified by:
        typeFromId in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
        Overrides:
        typeFromId in class com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase