-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement support for all node indices
- Loading branch information
Showing
11 changed files
with
1,742 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 0 additions & 54 deletions
54
src/main/java/liquibase/ext/neo4j/structure/NodeBTreeIndex.java
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
src/main/java/liquibase/ext/neo4j/structure/NodeFullTextIndex.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,55 @@ | ||
package liquibase.ext.neo4j.structure; | ||
|
||
import liquibase.structure.AbstractDatabaseObject; | ||
import liquibase.structure.CatalogLevelObject; | ||
import liquibase.structure.DatabaseObject; | ||
import liquibase.structure.core.Catalog; | ||
import liquibase.structure.core.Schema; | ||
|
||
public interface NodeIndex extends DatabaseObject { | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public class NodeIndex extends AbstractDatabaseObject implements CatalogLevelObject { | ||
|
||
private Label label; | ||
private String name; | ||
|
||
public NodeIndex() { | ||
} | ||
|
||
public NodeIndex(Label label, String type, String name, List<String> labels, List<String> properties, String indexProvider, Map<String, Object> indexConfig) { | ||
this.label = label; | ||
this.name = name; | ||
this.setAttribute("type", type); | ||
this.setAttribute("labels", labels); | ||
this.setAttribute("properties", properties); | ||
this.setAttribute("indexProvider", indexProvider); | ||
this.setAttribute("indexConfig", indexConfig); | ||
} | ||
|
||
@Override | ||
public DatabaseObject[] getContainingObjects() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public DatabaseObject setName(String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
@Override | ||
public Catalog getCatalog() { | ||
return label.getCatalog(); | ||
} | ||
|
||
@Override | ||
public Schema getSchema() { | ||
return null; | ||
} | ||
} |
Oops, something went wrong.