public TemplateMappingDescriptor RemoveMapping <T>()
            where T : class
        {
            var typeName = new TypeNameResolver().GetTypeNameFor <T>();

            return(this.RemoveMapping(typeName));
        }
示例#2
0
        public RootObjectMappingDescriptor <T> SetParent <K>() where K : class
        {
            var parentType = new TypeNameResolver().GetTypeNameFor <K>();

            this._Mapping.Parent = new ParentTypeMapping()
            {
                Type = parentType
            };
            return(this);
        }
示例#3
0
        public Inferrer(IConnectionSettingsValues connectionSettings)
        {
            connectionSettings.ThrowIfNull(nameof(connectionSettings));
            _connectionSettings  = connectionSettings;
            IdResolver           = new IdResolver(connectionSettings);
            IndexNameResolver    = new IndexNameResolver(connectionSettings);
            TypeNameResolver     = new TypeNameResolver(connectionSettings);
            RelationNameResolver = new RelationNameResolver(connectionSettings);
            FieldResolver        = new FieldResolver(connectionSettings);
            RoutingResolver      = new RoutingResolver(connectionSettings, IdResolver);

            Contracts = new ConcurrentDictionary <Type, JsonContract>();
            CreateMultiHitDelegates =
                new ConcurrentDictionary <Type, Action <MultiGetHitJsonConverter.MultiHitTuple, JsonSerializer, ICollection <IMultiGetHit <object> > > >();
            CreateSearchResponseDelegates =
                new ConcurrentDictionary <Type, Action <MultiSearchResponseJsonConverter.SearchHitTuple, JsonSerializer, IDictionary <string, object> >
                                          >();
        }
示例#4
0
 public BulkDeleteDescriptor()
 {
     this._typeNameResolver = new TypeNameResolver();
 }
示例#5
0
 public CreateWarmerDescriptor()
 {
     this.typeNameResolver = new TypeNameResolver();
 }
示例#6
0
 public BulkIndexDescriptor()
 {
     this._typeNameResolver = new TypeNameResolver();
 }
 public SearchDescriptor()
 {
     this.typeNameResolver = new TypeNameResolver();
 }
示例#8
0
 public SimpleGetDescriptor()
 {
     this.typeNameResolver = new TypeNameResolver();
 }
示例#9
0
 public PercolateDescriptor()
 {
     this.typeNameResolver = new TypeNameResolver();
 }
示例#10
0
 public PutWarmerDescriptor(IConnectionSettings connectionSettings)
 {
     this.typeNameResolver  = new TypeNameResolver();
     this.indexNameResolver = new IndexNameResolver(connectionSettings);
 }
示例#11
0
 public UpdateDescriptor()
 {
     this.typeNameResolver = new TypeNameResolver();
 }
示例#12
0
 public MoreLikeThisDescriptor()
 {
     this.typeNameResolver = new TypeNameResolver();
 }