|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.db.Db | +--ORG.oclc.db.DbNewton
DbNewton searches a local Newton database.
DbNewtonUserData
Field Summary | |
ORG.oclc.Newton.db.NewtonDatabase |
newtonDb
The NewtonDatabase object. |
Fields inherited from class ORG.oclc.db.Db |
CLOSED,
dbNames,
dbVersion,
dumpConfigInfo,
globals,
modeNames,
OPEN,
opsClient,
parents,
sortMap,
UPDATE,
users,
WAITINGTOCLOSE |
Method Summary | |
void |
accessAllowed(Object dbUserData)
|
void |
accessControl(Object accessControlResponse,
Object dbUserData)
Process the information from an AccessControl response to set user specific authorization information. |
TermInfo[] |
browse(String query,
int preferredPosition,
int numTerms,
DataDir Z39attributes,
DataDir resultSetAttributes,
int stepSize,
Object userData)
Perform a browse. |
protected Key[] |
buildSortKeys(String hitlist,
String[] keys,
int[] order,
Object dedupCriteria,
Object userData)
Return sort keys for the records in the hitlist. |
void |
close()
close this Db. |
void |
closewhenidle()
|
void |
connect(Object userInformation,
Object dbUserData)
Create a connection to this Db for a user. |
void |
deleteHitlist(String hitlist,
Object userData)
Delete the specified hitlist. |
void |
disconnect(Object userData)
Destroy a connection to this Db for a user. |
ExtSvcData |
extsvc(ExtSvcData esData,
ExtSvcHandler esHandler,
Object dbUserData)
Processes an Extended Services Request for the input task package and returns a response task package DataDir object. |
void |
finalize()
close the DbNewton before letting it garbage collect. |
TermComponentPostings[] |
getComponentResults(String hitlist,
Object userData)
Get the component postings for the specified hitlist. |
DbResults[] |
getDbResults(String hitlist,
Object userData)
Get the restrictor summaries for the specified hitlist. |
String |
getStats()
|
protected boolean |
init(IniFile inifile,
String which)
Initialize this DbNewton object. |
Object |
initDbUserData(String sessionId,
Object access,
Log log,
Object userDbMap)
Creates a database User data object for searching the database - Each database has it's own unique DbUserData object. |
boolean |
OK()
Check if the Db is open and ready for requests. |
int |
postings(String hitlist,
Object userData)
Get postings for a specified hitlist. |
DbPresentData[] |
present(String hitlist,
int startPoint,
int numRecs,
String elementSetName,
String syntax,
Object userData)
Get the specified records from the specified hitlist. |
boolean |
rolldatabase(IniFile inifile,
String iniSection)
|
int |
rolldatabaseusers()
|
int |
search(String query,
String hitlist,
boolean replaceFlag,
DataDir Z39attributesPlusTerm,
boolean doRestrictorSummary,
Object additionalSearchInfo,
Object userData)
Perform a search. |
void |
sort(String hitlist,
String sortedList,
String[] keys,
int[] order,
boolean fUseSortAttributes,
boolean sortAccrossDbs,
Object dupCriteria,
Object userData)
Sort the hitlist according to the keys. |
protected boolean |
supportsScan()
Does this Db support scan requests? |
protected boolean |
supportsSort()
Does this Db support sort requests? |
TermInfo |
toTermInfo(ORG.oclc.Newton.db.Term term)
Convert a Term to a TermInfo. |
protected void |
unsort(String hitlist,
Object userData)
Unsort the hitlist. |
Methods inherited from class ORG.oclc.db.Db |
browse,
dbnames,
deleteHitlist,
filterName,
getDb,
getDbNames,
getDbs,
getGlobals,
getName,
getOpenedFilesCount,
getOutstandingCount,
hasUsers,
numUsers,
openDb,
openDbs,
present,
search,
setOps,
setSearchMode,
SetupDatabase,
SetupDatabase,
sort,
sort,
updateOpenedFiles |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public ORG.oclc.Newton.db.NewtonDatabase newtonDb
Method Detail |
protected boolean init(IniFile inifile, String which) throws Exception
inifile
- for parameterswhich
- section name for inifile for this Dbpublic void close()
public boolean OK()
public DbPresentData[] present(String hitlist, int startPoint, int numRecs, String elementSetName, String syntax, Object userData) throws IOException, Diagnostic1
hitlist
- result set namestartPoint
- starts at 1numRecs
- to retrieveelementSetName
- view of record to retrievesyntax
- in which to return recorddbUserData
- user data containing hitlistspublic int postings(String hitlist, Object userData) throws Diagnostic1
hitlist
- result set namedbUserData
- user data object containing hitlistspublic int search(String query, String hitlist, boolean replaceFlag, DataDir Z39attributesPlusTerm, boolean doRestrictorSummary, Object additionalSearchInfo, Object userData) throws IOException, Diagnostic1
query
- type 0 query or null if this is not type 0hitlist
- result set name to createreplaceFlag
- can this hitlist overwrite a previous one?Z39attributesPlusTerm
- non-type 0 querydoRestrictorSummary
- flag to return a summary of recordsdbUserData
- user data containing hitlistspublic void deleteHitlist(String hitlist, Object userData)
hitlist
- the one to deletedbUserData
- user data containing hitlistspublic TermInfo[] browse(String query, int preferredPosition, int numTerms, DataDir Z39attributes, DataDir resultSetAttributes, int stepSize, Object userData) throws Exception, Diagnostic1
query
- term??preferredPosition
- of the query term in the returned listnumTerms
- to returnZ39attributesPlusTerm
- term plus starting point attributesresultSetAttributes
- result set attributes if they are different
from the starting point attributesstepSize
- number of terms between termsdbUserData
- user data containing hitlistspublic DbResults[] getDbResults(String hitlist, Object userData)
hitlist
- result set namedbUserData
- user data containing hitlistspublic TermComponentPostings[] getComponentResults(String hitlist, Object userData)
hitlist
- result set namedbUserData
- user data containing hitlistspublic String getStats()
protected boolean supportsSort()
protected boolean supportsScan()
public void finalize()
public void accessAllowed(Object dbUserData) throws AccessControl, Diagnostic1
public Object initDbUserData(String sessionId, Object access, Log log, Object userDbMap)
sessionId
- assigned by something elseaccess
- the object containing access info to connect to an
access serverlog
- the Log object for the user for tracingpublic void accessControl(Object accessControlResponse, Object dbUserData)
accessControlResponse
- object containing the access control
responsedbUserData
- user data containing hitlistspublic void connect(Object userInformation, Object dbUserData) throws Diagnostic1
sessionId
- assigned by something elseaccess
- the access info objectuserInformation
- the Z3950 userinformation datao
- ignoredlog
- user logging objectpublic void disconnect(Object userData)
dbUserData
- created by connectpublic TermInfo toTermInfo(ORG.oclc.Newton.db.Term term)
Term
- the term to convertpublic void sort(String hitlist, String sortedList, String[] keys, int[] order, boolean fUseSortAttributes, boolean sortAccrossDbs, Object dupCriteria, Object userData) throws Diagnostic1, Exception
hitlist
- result set namesortedList
- result set name for sorted resultskeys
- sort key parametersorder
- ascending or descendingfUseSortAttributes
- ignoredsortAccrossDbs
- flag for Dbmerge indicating whether to
sort accross databases to create one merged sorted set.dupCriteria
- the dedup criteria to use for a dedup sort.
for each record.userData
- user data containing hitlistsprotected void unsort(String hitlist, Object userData)
hitlist
- result set name
userData user data containing hitlistsprotected Key[] buildSortKeys(String hitlist, String[] keys, int[] order, Object dedupCriteria, Object userData) throws Exception, Diagnostic1
hitlist
- result set namekeys
- sort key parametersorder
- ascending or descendingdedupCriteria
- the object defining duplicate criteriauserData
- user data containing hitlistspublic ExtSvcData extsvc(ExtSvcData esData, ExtSvcHandler esHandler, Object dbUserData) throws Exception, Diagnostic1, AccessControl
function
- the ES function valuepackageType
- the ES package typeesTask
- the ES task packageuserId
- the userId associated with the ES requestdescription
- the description of the ES requestpackageName
- the name of the ES packagewaitAction
- the ES wait action valueuserData
- the user context informationpublic void closewhenidle()
public boolean rolldatabase(IniFile inifile, String iniSection)
public int rolldatabaseusers()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |