Class ElasticsearchSchemaFactory

  • All Implemented Interfaces:

    public class ElasticsearchSchemaFactory
    extends java.lang.Object
    implements SchemaFactory
    Factory that creates an ElasticsearchSchema.

    Allows a custom schema to be included in a model.json file.

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static org.elasticsearch.client.RestClient connect​(java.util.Map<java.lang.String,​java.lang.Integer> coordinates)
      Builds elastic rest client from user configuration
      Schema create​(SchemaPlus parentSchema, java.lang.String name, java.util.Map<java.lang.String,​java.lang.Object> operand)
      Creates a Schema.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ElasticsearchSchemaFactory

        public ElasticsearchSchemaFactory()
    • Method Detail

      • create

        public Schema create​(SchemaPlus parentSchema,
                             java.lang.String name,
                             java.util.Map<java.lang.String,​java.lang.Object> operand)
        Description copied from interface: SchemaFactory
        Creates a Schema.
        Specified by:
        create in interface SchemaFactory
        parentSchema - Parent schema
        name - Name of this schema
        operand - The "operand" JSON property
        Created schema
      • connect

        private static org.elasticsearch.client.RestClient connect​(java.util.Map<java.lang.String,​java.lang.Integer> coordinates)
        Builds elastic rest client from user configuration
        coordinates - list of hostname/port to connect to
        newly initialized low-level rest http client for ES