1 6 7 8 package com.hp.hpl.jena.db.impl; 9 10 import java.util.List ; 11 12 import com.hp.hpl.jena.graph.*; 13 import com.hp.hpl.jena.util.iterator.ExtendedIterator; 14 15 35 public interface SpecializedGraph { 36 37 54 public void add(Triple t, CompletionFlag complete); 55 56 71 public void add(List triples, CompletionFlag complete); 72 73 91 public void add(Graph g, CompletionFlag complete); 92 93 101 public void delete(Triple t, CompletionFlag complete); 102 103 115 public void delete(List triples, CompletionFlag complete); 116 117 122 public int tripleCount(); 123 124 131 public boolean contains(Triple t, CompletionFlag complete); 132 133 140 public ExtendedIterator find(TripleMatch m, CompletionFlag complete); 141 142 151 public ExtendedIterator find( Node s, Node p, Node o, CompletionFlag complete ); 152 153 158 public void clear(); 159 160 166 public void close(); 167 168 public class CompletionFlag { 169 boolean done; 170 171 public CompletionFlag() { done = false; } 172 173 public boolean isDone() { return done; } 174 175 public void setDone() { done = true; } 176 } 177 178 182 public int getGraphId(); 183 184 188 public IPSet getPSet(); 189 190 194 public DBPropLSet getDBPropLSet(); 195 196 201 202 203 public char subsumes ( Triple pattern, int reificationBehavior ); 204 205 static final char noTriplesForPattern = 'n'; static final char someTriplesForPattern = 's'; static final char allTriplesForPattern = 'a'; 209 210 211 } 212 213 242 | Popular Tags |