org.basex.data
Class FTPos

java.lang.Object
  extended by org.basex.data.FTPos

public final class FTPos
extends java.lang.Object

This class contains full-text positions for a single database node.

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

Method Summary
 boolean contains(int p)
          Checks if the specified position is found.
 FTPos copy()
          Creates a copy.
 int size()
          Returns the number of positions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

contains

public boolean contains(int p)
Checks if the specified position is found.

Parameters:
p - position to be found
Returns:
result of check

size

public int size()
Returns the number of positions.

Returns:
number of positions

copy

public FTPos copy()
Creates a copy.

Returns:
the copy