use of org.neo4j.internal.schema.FulltextSchemaDescriptor in project neo4j by neo4j.
the class SchemaCacheTest method removeSchemaWithRepeatedRelType.
@Test
void removeSchemaWithRepeatedRelType() {
final SchemaCache cache = newSchemaCache();
final int id = 1;
final int[] repeatedRelTypes = { 0, 1, 0 };
final FulltextSchemaDescriptor schema = fulltext(RELATIONSHIP, repeatedRelTypes, new int[] { 1 });
IndexDescriptor index = newIndexRule(schema, id);
cache.addSchemaRule(index);
cache.removeSchemaRule(id);
}
use of org.neo4j.internal.schema.FulltextSchemaDescriptor in project neo4j by neo4j.
the class SchemaCacheTest method removeSchemaWithRepeatedLabel.
@Test
void removeSchemaWithRepeatedLabel() {
final SchemaCache cache = newSchemaCache();
final int id = 1;
final int[] repeatedLabels = { 0, 1, 0 };
final FulltextSchemaDescriptor schema = fulltext(NODE, repeatedLabels, new int[] { 1 });
IndexDescriptor index = newIndexRule(schema, id);
cache.addSchemaRule(index);
cache.removeSchemaRule(id);
}
Aggregations