Class: MarkLogic::DatabaseSettings::Index

Inherits:
Object
  • Object
show all
Defined in:
lib/marklogic/database_settings/index.rb

Class Method Summary collapse

Class Method Details

.from_json(type, json) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/marklogic/database_settings/index.rb', line 5

def self.from_json(type, json)
case type
  when 'range-element-index'
    RangeElementIndex.from_json(json)
  when 'element-word-lexicon'
    ElementWordLexicon.from_json(json)
  when 'range-path-index'
    RangepathIndex.from_json(json)
  when 'range-field-index'
    RangeFieldIndex.from_json(json)
  when 'geospatial-element-index'
    GeospatialElementIndex.from_json(json)
  when 'geospatial-element-child-index'
    GeospatialElementChildIndex.from_json(json)
  when 'geospatial-element-pair-index'
    GeospatialElementPairIndex.from_json(json)
  when 'geospatial-path-index'
    GeospatialPathIndex.from_json(json)
  end
end