edu.utdallas.paged.mem.disk
Class PagedGraphTripleStoreDiskSpecific

java.lang.Object
  extended by edu.utdallas.paged.mem.disk.PagedGraphTripleStoreDiskBase
      extended by edu.utdallas.paged.mem.disk.PagedGraphTripleStoreDiskSpecific

public class PagedGraphTripleStoreDiskSpecific
extends PagedGraphTripleStoreDiskBase

A specific implementation of Lucene search when we want to look for specific triple patterns within specific indexes

Author:
vaibhav

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.utdallas.paged.mem.disk.PagedGraphTripleStoreDiskBase
PagedGraphTripleStoreDiskBase.Singleton
 
Field Summary
 
Fields inherited from class edu.utdallas.paged.mem.disk.PagedGraphTripleStoreDiskBase
increment, incrementThreshold, lineIndex, p, readLine, tripleMatch
 
Constructor Summary
PagedGraphTripleStoreDiskSpecific(com.hp.hpl.jena.graph.TripleMatch tm, edu.utdallas.paged.mem.PagedGraphTripleStoreBase pagedGraphTripleStoreBase, boolean isSubSearch, boolean isPredSearch, boolean isObjSearch)
          Constructor
 
Method Summary
 java.util.Iterator find()
          Method to find a triple pattern in the lucene index
 java.util.Iterator read(java.lang.String searchString, java.lang.String fileString)
          Method that checks the lucene index for a string
 
Methods inherited from class edu.utdallas.paged.mem.disk.PagedGraphTripleStoreDiskBase
add, removePunctuation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagedGraphTripleStoreDiskSpecific

public PagedGraphTripleStoreDiskSpecific(com.hp.hpl.jena.graph.TripleMatch tm,
                                         edu.utdallas.paged.mem.PagedGraphTripleStoreBase pagedGraphTripleStoreBase,
                                         boolean isSubSearch,
                                         boolean isPredSearch,
                                         boolean isObjSearch)
Constructor

Parameters:
tm - - the triple pattern we are looking for
pagedGraphTripleStoreBase - - the triple store base for this model
isSubSearch - - are we looking for subjects ??
isPredSearch - - are we looking for predicates ??
isObjSearch - - are we looking for objects ??
Method Detail

find

public java.util.Iterator find()
Description copied from class: PagedGraphTripleStoreDiskBase
Method to find a triple pattern in the lucene index

Specified by:
find in class PagedGraphTripleStoreDiskBase
Returns:
a null iterator or an iterator that contains the triples that match the triple pattern we are looking for
See Also:
PagedGraphTripleStoreDiskBase.find()

read

public java.util.Iterator read(java.lang.String searchString,
                               java.lang.String fileString)
Description copied from class: PagedGraphTripleStoreDiskBase
Method that checks the lucene index for a string

Specified by:
read in class PagedGraphTripleStoreDiskBase
Parameters:
searchString - - the strinng we are looking for
fileString - - the index we want to check
Returns:
a null iterator or an iterator that contains the triples that match the triple pattern we are looking for
See Also:
PagedGraphTripleStoreDiskBase.read(String, String)