cbmongodb.Mongo

Class Indexer

lucee.Component
    extended by cbmongodb.Mongo.Indexer

Mongo Indexer Maintains and Tracks Collection Indexes for MongoDB Collection Instances

Class Attributes:
  • singleton : true
  •  
  • license : Apache v2.0
  •  
  • package : cbmongodb.models.Mongo
  •  
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
  • scope : cachebox
  •  
  • author : Jon Clausen
  •  
    Property Summary
    type property default serializable required
    any mongoUtil


    • access = public
    • returntype = any
    • inject = id:MongoUtil@cbmongodb
    true false
    Constructor Summary
    init()
    Method Summary
    any applyIndex(any dbInstance, any prop, [any properties='[runtime expression]'])
         Create and apply our indexes.
    any getIndexInfo(any dbInstance)
    any getIndexNames()
    any getMap()
    string getMongoUtil()
    any indexExists(any dbInstance, any name)
         Returns whether the index exists.
    any indexOrder(any prop)
         Returns the index sort option.
    any setMongoUtil(any mongoUtil)
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()


    Property Detail

    mongoUtil

    property any mongoUtil

    Attributes:
    access - public
    required - false
    returntype - any
    inject - id:MongoUtil@cbmongodb
    serializable - true

    Method Detail

    applyIndex

    public any applyIndex(any dbInstance, any prop, [any properties='[runtime expression]'])

    Create and apply our indexes

    Parameters:
    dbInstance
    prop
    properties

    getIndexInfo

    public any getIndexInfo(any dbInstance)

    Parameters:
    dbInstance

    getIndexNames

    public any getIndexNames()


    getMap

    public any getMap()


    getMongoUtil

    public string getMongoUtil()


    indexExists

    public any indexExists(any dbInstance, any name)

    Returns whether the index exists

    Parameters:
    dbInstance
    name

    indexOrder

    public any indexOrder(any prop)

    Returns the index sort option

    Parameters:
    prop
    Returns:
    numeric order

    setMongoUtil

    public any setMongoUtil(any mongoUtil)

    Parameters:
    mongoUtil