Skip to content

Commit

Permalink
Fix logging error message and index issues with array properties
Browse files Browse the repository at this point in the history
  • Loading branch information
AstrorEnales committed Jun 1, 2022
1 parent 78643c7 commit beed19e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
import com.arcadedb.graph.MutableVertex;
import com.arcadedb.graph.Vertex;
import com.arcadedb.index.lsm.LSMTreeIndexAbstract;
import com.arcadedb.schema.EdgeType;
import com.arcadedb.schema.Schema;
import com.arcadedb.schema.Type;
import com.arcadedb.schema.VertexType;
import com.arcadedb.schema.*;
import com.arcadedb.server.ArcadeDBServer;
import de.unibi.agbi.biodwh2.core.model.graph.Edge;
import de.unibi.agbi.biodwh2.core.model.graph.Graph;
Expand All @@ -35,7 +32,7 @@
import java.util.Map;

/**
* https://docs.arcadedb.com/#Embed-Server
* <a href="https://docs.arcadedb.com/#Embed-Server">ArcadeDB Embedded Server</a>
*/
public class ArcadeDBService {
private static final Logger LOGGER = LoggerFactory.getLogger(ArcadeDBService.class);
Expand Down Expand Up @@ -240,6 +237,13 @@ private void createIndices(final DatabaseInternal db, final Graph graph) {
LOGGER.info("Creating indices...");
final IndexDescription[] indices = graph.indexDescriptions();
for (final IndexDescription index : indices) {
if (index.isArrayProperty()) {
if (LOGGER.isInfoEnabled())
LOGGER.info("Skipping " + index.getType() + " index creation on '" + index.getProperty() +
"' field for " + index.getTarget() + " label '" + index.getLabel() +
"' as array indices are not yet supported by ArcadeDB");
continue;
}
if (LOGGER.isInfoEnabled())
LOGGER.info("Creating " + index.getType() + " index on '" + index.getProperty() + "' field for " +
index.getTarget() + " label '" + index.getLabel() + "'...");
Expand Down
Empty file.

0 comments on commit beed19e

Please sign in to comment.