Show / Hide Table of Contents

    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 , 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
    DocMaker
    SpatialDocMaker
    Inherited Members
    DocMaker.BODY_FIELD
    DocMaker.TITLE_FIELD
    DocMaker.DATE_FIELD
    DocMaker.DATE_MSEC_FIELD
    DocMaker.TIME_SEC_FIELD
    DocMaker.ID_FIELD
    DocMaker.BYTES_FIELD
    DocMaker.NAME_FIELD
    DocMaker.m_config
    DocMaker.m_valType
    DocMaker.m_bodyValType
    DocMaker.m_source
    DocMaker.m_reuseFields
    DocMaker.m_indexProperties
    DocMaker.GetDocState()
    DocMaker.Dispose()
    DocMaker.Dispose(Boolean)
    DocMaker.ResetInputs()
    Namespace: Lucene.Net.Benchmarks.ByTask.Feeds
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public class SpatialDocMaker : DocMaker

    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)

    Looks up the SpatialStrategy from the given round -- RoundNumber. It's an error if it wasn't created already for this round -- when SpatialDocMaker is initialized.

    Declaration
    public static SpatialStrategy GetSpatialStrategy(int roundNumber)
    Parameters
    Type Name Description
    System.Int32 roundNumber
    Returns
    Type Description
    SpatialStrategy
    | Improve this Doc View Source

    MakeDocument()

    Declaration
    public override Document MakeDocument()
    Returns
    Type Description
    Document
    Overrides
    DocMaker.MakeDocument()
    | Improve this Doc View Source

    MakeDocument(Int32)

    Declaration
    public override Document MakeDocument(int size)
    Parameters
    Type Name Description
    System.Int32 size
    Returns
    Type Description
    Document
    Overrides
    DocMaker.MakeDocument(Int32)
    | 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
    Type Name Description
    SpatialStrategy spatialStrategy
    Config config
    System.String configKeyPrefix
    Returns
    Type Description
    IShapeConverter
    | 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
    IShape
    | Improve this Doc View Source

    MakeSpatialStrategy(Config)

    Builds a SpatialStrategy from configuration options.

    Declaration
    protected virtual SpatialStrategy MakeSpatialStrategy(Config config)
    Parameters
    Type Name Description
    Config config
    Returns
    Type Description
    SpatialStrategy
    | 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
    IDictionary<System.String, System.String> configMap
    SpatialContext ctx
    Returns
    Type Description
    SpatialStrategy
    | Improve this Doc View Source

    SetConfig(Config, ContentSource)

    Declaration
    public override void SetConfig(Config config, ContentSource source)
    Parameters
    Type Name Description
    Config config
    ContentSource source
    Overrides
    DocMaker.SetConfig(Config, ContentSource)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)