Class SpatialDocMaker
  
  Indexes spatial data according to a configured SpatialStrategy with optional
shape transformation via a configured IShapeConverter. The converter can turn points into
circles and bounding boxes, in order to vary the type of indexing performance tests.
Unless it's subclass-ed to do otherwise, this class configures a Spatial4n.Core.Context.SpatialContext,
SpatialPrefixTree, and RecursivePrefixTreeStrategy. The Strategy is made
available to a query maker via the static method GetSpatialStrategy(Int32).
See spatial.alg for a listing of spatial parameters, in particular those starting with "spatial."
and "doc.spatial".
 
  
  
    Inheritance
    System.Object
    
    SpatialDocMaker
   
  
    Implements
    System.IDisposable
   
  
    Inherited Members
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
   
  
  Assembly: Lucene.Net.Benchmark.dll
  Syntax
  
    public class SpatialDocMaker : DocMaker, IDisposable
   
  Fields
  
  
    |
    Improve this Doc
  
  
    View Source
  
  SPATIAL_FIELD
  
  
  Declaration
  
    public static readonly string SPATIAL_FIELD
   
  Field Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
         | 
      
    
  
  Methods
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetSpatialStrategy(Int32)
  
  
  Declaration
  
    public static SpatialStrategy GetSpatialStrategy(int roundNumber)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        roundNumber | 
         | 
      
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  MakeDocument()
  
  
  Declaration
  
    public override Document MakeDocument()
   
  Returns
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  MakeDocument(Int32)
  
  
  Declaration
  
    public override Document MakeDocument(int size)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Int32 | 
        size | 
         | 
      
    
  
  Returns
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  MakeShapeConverter(SpatialStrategy, Config, String)
  Optionally converts points to circles, and optionally bbox'es result.
 
  
  Declaration
  
    public static IShapeConverter MakeShapeConverter(SpatialStrategy spatialStrategy, Config config, string configKeyPrefix)
   
  Parameters
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  MakeShapeFromString(SpatialStrategy, String, String)
  
  
  Declaration
  
    public static IShape MakeShapeFromString(SpatialStrategy strategy, string name, string shapeStr)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | SpatialStrategy | 
        strategy | 
         | 
      
      
        | System.String | 
        name | 
         | 
      
      
        | System.String | 
        shapeStr | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | Spatial4n.Core.Shapes.IShape | 
         | 
      
    
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  MakeSpatialStrategy(Config)
  
  
  Declaration
  
    protected virtual SpatialStrategy MakeSpatialStrategy(Config config)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Config | 
        config | 
         | 
      
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  MakeSpatialStrategy(Config, IDictionary<String, String>, SpatialContext)
  
  
  Declaration
  
    protected virtual SpatialStrategy MakeSpatialStrategy(Config config, IDictionary<string, string> configMap, SpatialContext ctx)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Config | 
        config | 
         | 
      
      
        | System.Collections.Generic.IDictionary<System.String, System.String> | 
        configMap | 
         | 
      
      
        | Spatial4n.Core.Context.SpatialContext | 
        ctx | 
         | 
      
    
  
  Returns
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  SetConfig(Config, ContentSource)
  
  
  Declaration
  
    public override void SetConfig(Config config, ContentSource source)
   
  Parameters
  
  Overrides
  
  Implements
  
      System.IDisposable