@Test(expectedExceptions = IllegalArgumentException.class) public void testCreateViewIndexMainView() { GraphStore graphStore = new GraphStore(); graphStore.nodeTable.store.indexStore.createViewIndex(graphStore); }
protected IndexImpl createViewIndex(Graph graph) { if (graph.getView().isMainView()) { throw new IllegalArgumentException("Can't create a view index for the main view"); } IndexImpl viewIndex = new IndexImpl<T>(columnStore); ColumnImpl[] columns = columnStore.toArray(); viewIndex.addAllColumns(columns); viewIndexes.put(graph.getView(), viewIndex); indexView(graph); return viewIndex; }
IndexStore { protected IndexImpl createViewIndex(Graph graph) { if (graph.getView().isMainView()) { throw new IllegalArgumentException("Can't create a view index for the main view"); } IndexImpl viewIndex = new IndexImpl<T>(columnStore); ColumnImpl[] columns = columnStore.toArray(); viewIndex.addAllColumns(columns); viewIndexes.put(graph.getView(), viewIndex); indexView(graph); return viewIndex; } }
IndexStore { protected IndexImpl createViewIndex(Graph graph) { if (graph.getView().isMainView()) { throw new IllegalArgumentException("Can't create a view index for the main view"); } IndexImpl viewIndex = new IndexImpl<T>(columnStore); ColumnImpl[] columns = columnStore.toArray(); viewIndex.addAllColumns(columns); viewIndexes.put(graph.getView(), viewIndex); indexView(graph); return viewIndex; } IndexStore(ColumnStore<T> columnStore); }
IndexStore { protected IndexImpl createViewIndex(Graph graph) { if (graph.getView().isMainView()) { throw new IllegalArgumentException("Can't create a view index for the main view"); } IndexImpl viewIndex = new IndexImpl<T>(columnStore); ColumnImpl[] columns = columnStore.toArray(); viewIndex.addAllColumns(columns); viewIndexes.put(graph.getView(), viewIndex); indexView(graph); return viewIndex; } IndexStore(ColumnStore<T> columnStore); Object set(Column column, Object oldValue, Object value, T element); void clear(T element); void index(T element); void indexView(Graph graph); void indexInView(T element, GraphView view); void clearInView(T element, GraphView view); void clear(GraphView view); void clear(); }
IndexStore { protected IndexImpl createViewIndex(Graph graph) { if (graph.getView().isMainView()) { throw new IllegalArgumentException("Can't create a view index for the main view"); } IndexImpl viewIndex = new IndexImpl<T>(columnStore); ColumnImpl[] columns = columnStore.toArray(); viewIndex.addAllColumns(columns); viewIndexes.put(graph.getView(), viewIndex); indexView(graph); return viewIndex; } IndexStore(ColumnStore<T> columnStore); Object set(Column column, Object oldValue, Object value, T element); void clear(T element); void index(T element); void indexView(Graph graph); void indexInView(T element, GraphView view); void clearInView(T element, GraphView view); void clear(GraphView view); void clear();  }