|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.ethz.mxquery.sms.MMimpl.FIFOStore
ch.ethz.mxquery.sms.MMimpl.TokenBufferStore
ch.ethz.mxquery.sms.ftstore.FTTokenBufferStore
public class FTTokenBufferStore
Storage of Tokens (materialized), Linguistic Tokens and indexes on them
| Field Summary |
|---|
| Fields inherited from class ch.ethz.mxquery.sms.MMimpl.TokenBufferStore |
|---|
level, MAX_NODE_ID, myId, tokenBuffer |
| Fields inherited from class ch.ethz.mxquery.sms.MMimpl.FIFOStore |
|---|
iterator, readThread |
| Constructor Summary | |
|---|---|
FTTokenBufferStore(int id,
WindowBuffer container)
|
|
FTTokenBufferStore(XDMIterator sourceStream,
int id,
WindowBuffer container)
Creates a new FTTokenBuffer for a stream with standard parameters |
|
| Method Summary | |
|---|---|
int |
compare(Source store)
|
Token |
get(int tokenId)
Returns the Token for a given token id |
Token |
get(int tokenId,
int maxNodeId)
Returns the token for a given tokenId. |
double |
getInverseDocumentFrequency(java.lang.String word)
|
LinguisticToken |
getLinguisticTokens(DeweyIdentifier did)
|
PhraseIterator |
getLinguisticTokensExact(java.lang.String word)
|
PhraseIterator |
getLinguisticTokensForMultipleWildCard(java.lang.String word)
|
PhraseIterator |
getLinguisticTokensWithInfix(java.lang.String prefix,
java.lang.String suffix,
java.lang.String wildcard)
returns all Linguistic Tokens for the word with prefix "prefix" and suffix "suffix" and fulfilling the wildcard predicate |
PhraseIterator |
getLinguisticTokensWithPrefix(java.lang.String suffix,
java.lang.String wildcard)
returns all Linguistic Tokens for the word with suffix "suffix" and fulfilling the wildcard predicate |
PhraseIterator |
getLinguisticTokensWithSuffix(java.lang.String prefix,
java.lang.String wildcard)
returns all Linguistic Tokens for the word with prefix "prefix" and fulfilling the wildcard predicate |
int |
getNumberOfDescendants()
|
PhraseIterator |
getPhraseExact(java.util.Vector v,
DeweyIdentifier[] ignoreId)
|
java.util.Vector |
getPhraseWithStemming(java.util.Vector v)
|
PhraseIterator |
getPhraseWithWildcard(java.lang.String phrase,
DeweyIdentifier[] ignoreId)
|
java.util.Vector |
getPhraseWithWildcards(java.util.Vector v)
|
int |
getTokenIdForNode(int nodeId)
Returns the position for a given NodePosition. |
java.lang.String |
getURI()
Returns the URI of the source. |
java.util.Vector |
getWordsExact(java.lang.String word)
|
java.util.Vector |
getWordsForMultipleWildCard(java.lang.String word)
|
java.util.Vector |
getWordsForStem(java.lang.String stem)
returns all words for the word with the stem "stem" in a vector |
java.util.Vector |
getWordsForWildcards(java.lang.String text)
returns all words for the word "text" and fulfilling the wildcard predicate |
java.util.Vector |
getWordsWithInfix(java.lang.String prefix,
java.lang.String suffix,
java.lang.String wildcard)
returns all words for the word with prefix "prefix" and suffix "suffix" and fulfilling the wildcard predicate |
java.util.Vector |
getWordsWithPrefix(java.lang.String suffix,
java.lang.String wildcard)
returns all words for the word with suffix "suffix" and fulfilling the wildcard predicate |
java.util.Vector |
getWordsWithSuffix(java.lang.String prefix,
java.lang.String wildcard)
returns all words for the word with prefix "prefix" and fulfilling the wildcard predicate |
void |
setUri(java.lang.String uri)
|
| Methods inherited from class ch.ethz.mxquery.sms.MMimpl.TokenBufferStore |
|---|
buffer, copySource, deleteItems, getAttributePosFromNodeId, getAttributePosFromTokenId, getMaxNodeId, getMaxTokenId, getMyId, getNodeIdFromTokenId, getNodeIdFromTokenId, getSize, hasNode, newItem, printBuffer, setContext, setIterator, start |
| Methods inherited from class ch.ethz.mxquery.sms.MMimpl.FIFOStore |
|---|
getCurrentTokenId, getIterator, setContainer |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ch.ethz.mxquery.datamodel.Source |
|---|
copySource, getIterator |
| Constructor Detail |
|---|
public FTTokenBufferStore(XDMIterator sourceStream,
int id,
WindowBuffer container)
throws MXQueryException
sourceStream - Source Stream
MXQueryException
public FTTokenBufferStore(int id,
WindowBuffer container)
throws MXQueryException
MXQueryException| Method Detail |
|---|
public Token get(int tokenId)
throws MXQueryException
TokenBufferStore
get in interface StreamStoreget in interface MXQueryAppendUpdateget in class TokenBufferStoretokenId - Unique id given to the token inside this store instance (token position
MXQueryException
public Token get(int tokenId,
int maxNodeId)
throws MXQueryException
TokenBufferStore
get in interface MXQueryAppendUpdateget in class TokenBufferStoretokenId - Token IdmaxNodeId - Max Token Id
MXQueryException
public int getTokenIdForNode(int nodeId)
throws MXQueryException
TokenBufferStore
getTokenIdForNode in interface MXQueryAppendUpdategetTokenIdForNode in class TokenBufferStoreMXQueryExceptionpublic double getInverseDocumentFrequency(java.lang.String word)
getInverseDocumentFrequency in interface FullTextStorepublic java.util.Vector getWordsExact(java.lang.String word)
public java.util.Vector getWordsForStem(java.lang.String stem)
getWordsForStem in interface FullTextStore
public PhraseIterator getLinguisticTokensWithInfix(java.lang.String prefix,
java.lang.String suffix,
java.lang.String wildcard)
getLinguisticTokensWithInfix in interface FullTextStore
public java.util.Vector getWordsWithInfix(java.lang.String prefix,
java.lang.String suffix,
java.lang.String wildcard)
getWordsWithInfix in interface FullTextStore
public PhraseIterator getLinguisticTokensWithPrefix(java.lang.String suffix,
java.lang.String wildcard)
getLinguisticTokensWithPrefix in interface FullTextStore
public java.util.Vector getWordsWithPrefix(java.lang.String suffix,
java.lang.String wildcard)
getWordsWithPrefix in interface FullTextStore
public PhraseIterator getLinguisticTokensWithSuffix(java.lang.String prefix,
java.lang.String wildcard)
getLinguisticTokensWithSuffix in interface FullTextStore
public java.util.Vector getWordsWithSuffix(java.lang.String prefix,
java.lang.String wildcard)
getWordsWithSuffix in interface FullTextStorepublic java.util.Vector getWordsForWildcards(java.lang.String text)
public java.util.Vector getPhraseWithStemming(java.util.Vector v)
v - phrase (each word as an element)
public PhraseIterator getPhraseExact(java.util.Vector v,
DeweyIdentifier[] ignoreId)
throws MXQueryException
getPhraseExact in interface FullTextStorev - phrase (each word as an element)
MXQueryException
public PhraseIterator getPhraseWithWildcard(java.lang.String phrase,
DeweyIdentifier[] ignoreId)
throws MXQueryException
getPhraseWithWildcard in interface FullTextStorephrase - phrase (as String)
MXQueryExceptionpublic java.util.Vector getPhraseWithWildcards(java.util.Vector v)
v - phrase (each word as an element)
public LinguisticToken getLinguisticTokens(DeweyIdentifier did)
getLinguisticTokens in interface FullTextStorepublic PhraseIterator getLinguisticTokensExact(java.lang.String word)
getLinguisticTokensExact in interface FullTextStorepublic PhraseIterator getLinguisticTokensForMultipleWildCard(java.lang.String word)
public java.util.Vector getWordsForMultipleWildCard(java.lang.String word)
getWordsForMultipleWildCard in interface FullTextStorepublic int getNumberOfDescendants()
public java.lang.String getURI()
Source
getURI in interface SourcegetURI in class TokenBufferStorepublic void setUri(java.lang.String uri)
public int compare(Source store)
compare in interface Sourcecompare in class TokenBufferStore
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||