Class ClientFactory


  • public class ClientFactory
    extends java.lang.Object
    Every call in this factory will create its own ThinClientBasedMetadata. However, they will share the same thin-client that's being passed in as a config.
    • Constructor Detail

      • ClientFactory

        public ClientFactory()
    • Method Detail

      • getAndStartSpecificStoreClient

        public static <K,​V extends org.apache.avro.specific.SpecificRecord> AvroSpecificStoreClient<K,​V> getAndStartSpecificStoreClient​(ClientConfig clientConfig)
      • getAndStartGenericStoreClient

        public static <K,​V> AvroGenericStoreClient<K,​V> getAndStartGenericStoreClient​(StoreMetadata storeMetadata,
                                                                                                  ClientConfig clientConfig)
        TODO: once we decide to completely remove the helix based implementation, we won't need to pass the param: {@param storeMetadata} in these factory methods. So far, it is for the testing purpose.