org.xBaseJ.indexes
Class MDX

java.lang.Object
  extended byorg.xBaseJ.indexes.Index
      extended byorg.xBaseJ.indexes.MDX

public class MDX
extends Index


Field Summary
 
Fields inherited from class org.xBaseJ.indexes.Index
activeKey, bytebuffer, channel, database, dosname, file, findAnyKey, findFirstMatchingKey, foundExact, foundMatchingKeyButNotRecord, key_definition, key_entry_size, key_length, key_per_Node, keyControl, keyNotFound, keyType, next_available, nfile, record, reserved_01, reserved_02, reserved_03, reserved_04, stringKey, top_Node, topNode, unique_key, workNode
 
Constructor Summary
MDX(MDXFile ifile, DBF iDBF, short ipos)
           
MDX(String iname, String NDXString, DBF iDBF, MDXFile ifile, TagDescriptor inTagDesc, short pos, boolean unique)
           
 
Method Summary
 int add_entry(NodeKey NDXkey, int recno)
           
 void del_entry(Node inNode)
           
 int find_entry(NodeKey findKey)
           
 int find_entry(NodeKey findKey, int rec)
           
 int find_entry(NodeKey findKey, MNode aNode, int findrec)
           
 int get_next_key()
           
 int get_prev_key()
           
 void reIndex()
           
 
Methods inherited from class org.xBaseJ.indexes.Index
add_entry, build_key, buildKey, check_for_duplicates, compareKey, didFindFindExact, find_entry, find_entry, get_active_key, getKeyFields, getName, is_unique_key, position_at_first, position_at_last, set_active_key, set_key_definition, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDX

public MDX(MDXFile ifile,
           DBF iDBF,
           short ipos)
    throws xBaseJException,
           IOException

MDX

public MDX(String iname,
           String NDXString,
           DBF iDBF,
           MDXFile ifile,
           TagDescriptor inTagDesc,
           short pos,
           boolean unique)
    throws xBaseJException,
           IOException
Method Detail

reIndex

public void reIndex()
             throws xBaseJException,
                    IOException
Specified by:
reIndex in class Index
Throws:
xBaseJException
IOException

find_entry

public int find_entry(NodeKey findKey)
               throws xBaseJException,
                      IOException
Specified by:
find_entry in class Index
Throws:
xBaseJException
IOException

find_entry

public int find_entry(NodeKey findKey,
                      int rec)
               throws xBaseJException,
                      IOException
Specified by:
find_entry in class Index
Throws:
xBaseJException
IOException

find_entry

public int find_entry(NodeKey findKey,
                      MNode aNode,
                      int findrec)
               throws xBaseJException,
                      IOException
Throws:
xBaseJException
IOException

get_next_key

public int get_next_key()
                 throws xBaseJException,
                        IOException
Specified by:
get_next_key in class Index
Throws:
xBaseJException
IOException

get_prev_key

public int get_prev_key()
                 throws xBaseJException,
                        IOException
Specified by:
get_prev_key in class Index
Throws:
xBaseJException
IOException

add_entry

public int add_entry(NodeKey NDXkey,
                     int recno)
              throws xBaseJException,
                     IOException
Specified by:
add_entry in class Index
Throws:
xBaseJException
IOException

del_entry

public void del_entry(Node inNode)
               throws IOException,
                      xBaseJException
Specified by:
del_entry in class Index
Throws:
IOException
xBaseJException


Copyright 1997-2007 American Coders Ltd. All Rights Reserved.