Class: Neo4j::Schema::ExactIndexOperation

Inherits:
Operation
  • Object
show all
Defined in:
lib/neo4j/schema/operation.rb

Instance Attribute Summary

Attributes inherited from Operation

#label, #options, #property

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Operation

#create!, #default_options, #drop!, #drop_incompatible!, #incompatible_operation_classes, #initialize, #label_object

Constructor Details

This class inherits a constructor from Neo4j::Schema::Operation

Class Method Details

.incompatible_operation_classesObject



66
67
68
# File 'lib/neo4j/schema/operation.rb', line 66

def self.incompatible_operation_classes
  [UniqueConstraintOperation]
end

Instance Method Details

#exist?Boolean

Returns:

  • (Boolean)


74
75
76
# File 'lib/neo4j/schema/operation.rb', line 74

def exist?
  label.index?(property)
end

#typeObject



70
71
72
# File 'lib/neo4j/schema/operation.rb', line 70

def type
  'index'
end