@Override public boolean isEdgeTable(Table table) { return Edge.class.equals(table.getElementClass()); }
@Override public boolean isNodeTable(Table table) { return Node.class.equals(table.getElementClass()); }
/** * Returns true if the given column is a node column. * * @param colum column to test * @return true if the column is a node column, false otherwise */ public static boolean isNodeColumn(Column colum) { return colum.getTable().getElementClass().equals(Node.class); }
/** * Returns true if the given column is an edge column. * * @param colum column to test * @return true if the column is an edge column, false otherwise */ public static boolean isEdgeColumn(Column colum) { return colum.getTable().getElementClass().equals(Edge.class); } }
/** * Returns true if the given column is an edge column. * * @param colum column to test * @return true if the column is an edge column, false otherwise */ public static boolean isEdgeColumn(Column colum) { return colum.getTable().getElementClass().equals(Edge.class); } }
/** * Returns true if the given column is a node column. * * @param colum column to test * @return true if the column is a node column, false otherwise */ public static boolean isNodeColumn(Column colum) { return colum.getTable().getElementClass().equals(Node.class); }
String id = table.getElementClass().equals(Node.class) ? mapHelper.nodeIndexToIds.get(index) : mapHelper.edgeIndexToIds.get(index); if (id != null) { Column col = table.getColumn(id);
if (table.getElementClass().equals(Node.class)) { mapHelper.nodeIndexToIds.put(index, id); } else {