org.basex.query.value.node
Class FTNode

java.lang.Object
  extended by org.basex.data.ExprInfo
      extended by org.basex.query.expr.Expr
          extended by org.basex.query.value.Value
              extended by org.basex.query.value.item.Item
                  extended by org.basex.query.value.node.ANode
                      extended by org.basex.query.value.node.DBNode
                          extended by org.basex.query.value.node.FTNode
All Implemented Interfaces:
java.lang.Iterable<Item>

public final class FTNode
extends DBNode

Disk-based full-text Node item.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Nested Class Summary
 
Nested classes/interfaces inherited from class org.basex.query.expr.Expr
Expr.Flag
 
Field Summary
 FTMatches all
          Full-text matches.
 
Fields inherited from class org.basex.query.value.node.DBNode
data, pre
 
Fields inherited from class org.basex.query.value.node.ANode
id
 
Fields inherited from class org.basex.query.value.item.Item
score, UNDEF
 
Fields inherited from class org.basex.query.value.Value
type
 
Constructor Summary
FTNode(FTMatches a, Data d, int p, int tol, int tis, double s)
          Constructor, called by the index variant.
FTNode(FTMatches a, double s)
          Constructor, called by the sequential variant.
 
Method Summary
 double score()
          Returns a score value.
 java.lang.String toString()
           
 
Methods inherited from class org.basex.query.value.node.DBNode
ancestor, ancestorOrSelf, attributes, baseURI, children, copy, copy, data, dbCopy, dbl, deepCopy, descendant, descendantOrSelf, diff, finish, following, followingSibling, hasChildren, is, itr, name, namespaces, parent, parent, parentIter, plan, qname, qname, sameAs, set, string, typeId, xdmInfo
 
Methods inherited from class org.basex.query.value.node.ANode
attribute, attribute, attribute, bool, diff, diff, eq, kind, kind, nodeType, nsScope, optimize, preceding, precedingSibling, self, string, toJava, type, uri
 
Methods inherited from class org.basex.query.value.item.Item
castErr, comparable, dec, description, ebv, equiv, flt, hash, homogeneous, input, isItem, item, itemAt, iter, iterable, materialize, score, size, test, type, writeTo
 
Methods inherited from class org.basex.query.value.Value
accept, cache, checkUp, compile, count, exprSize, has, inline, isValue, iter, iterator, removable, serialize, value
 
Methods inherited from class org.basex.query.expr.Expr
addText, compEbv, copy, hasFreeVars, indexAccessible, indexEquivalent, inlineAll, isEmpty, isFunction, isVacuous, markTailCalls, optimize, uses, visitAll
 
Methods inherited from class org.basex.data.ExprInfo
addPlan, addPlan, info, planAttr, planElem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

all

public FTMatches all
Full-text matches.

Constructor Detail

FTNode

public FTNode(FTMatches a,
              double s)
Constructor, called by the sequential variant.

Parameters:
a - matches
s - scoring

FTNode

public FTNode(FTMatches a,
              Data d,
              int p,
              int tol,
              int tis,
              double s)
Constructor, called by the index variant.

Parameters:
a - full-text matches
d - data reference
p - pre value
tol - token length
tis - total size indexed results
s - score value out of the index
Method Detail

score

public double score()
Description copied from class: Item
Returns a score value.

Overrides:
score in class Item
Returns:
score value

toString

public java.lang.String toString()
Overrides:
toString in class DBNode