org.xBaseJ.indexes
Class Node

java.lang.Object
  extended byorg.xBaseJ.indexes.Node
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
MNode

public class Node
extends Object
implements Cloneable


Field Summary
 boolean branch
           
 byte[] key_buffer
           
 NodeKey[] key_expression
           
 int key_expression_size
           
 int[] key_record_number
           
 int keys_in_a_Node
           
 int keys_in_this_Node
           
 char keyType
           
 int[] lower_level
           
 Node next
           
 RandomAccessFile nfile
           
 int pos
           
 Node prev
           
 int record_number
           
 
Constructor Summary
Node(RandomAccessFile file, int keys_in, int key_size, char keyType, int rn, boolean iBranch)
           
 
Method Summary
 Object clone()
           
 int get_key_record_number()
           
 NodeKey get_key_value()
           
 int get_keys_in_this_Node()
           
 int get_lower_level()
           
 Node get_next()
           
 int get_pos()
           
 Node get_prev()
           
 int get_record_number()
           
 boolean isBranch()
           
 int pos_down()
           
 int pos_up()
           
 void read()
           
 void set_key_expression_size(int l)
           
 void set_key_record_number(int r)
           
 void set_key_value(double key)
           
 void set_key_value(NodeKey key)
           
 void set_key_value(String key)
           
 void set_keys_in_this_Node(int c)
           
 void set_lower_level(int level)
           
 void set_next(Node nxt)
           
 void set_pos(int ipos)
           
 void set_prev_page(int t)
           
 void set_prev(Node prv)
           
 void set_record_number(int r)
           
 void write()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nfile

public RandomAccessFile nfile

pos

public int pos

keys_in_a_Node

public int keys_in_a_Node

keys_in_this_Node

public int keys_in_this_Node

key_expression_size

public int key_expression_size

record_number

public int record_number

keyType

public char keyType

key_buffer

public byte[] key_buffer

lower_level

public int[] lower_level

key_record_number

public int[] key_record_number

key_expression

public NodeKey[] key_expression

prev

public Node prev

next

public Node next

branch

public boolean branch
Constructor Detail

Node

public Node(RandomAccessFile file,
            int keys_in,
            int key_size,
            char keyType,
            int rn,
            boolean iBranch)
Method Detail

clone

public Object clone()

set_pos

public void set_pos(int ipos)

set_key_expression_size

public void set_key_expression_size(int l)

pos_up

public int pos_up()

set_record_number

public void set_record_number(int r)
                       throws xBaseJException
Throws:
xBaseJException

get_record_number

public int get_record_number()

pos_down

public int pos_down()

get_pos

public int get_pos()

set_key_record_number

public void set_key_record_number(int r)

get_key_record_number

public int get_key_record_number()

set_lower_level

public void set_lower_level(int level)

get_lower_level

public int get_lower_level()

set_keys_in_this_Node

public void set_keys_in_this_Node(int c)

get_keys_in_this_Node

public int get_keys_in_this_Node()

set_key_value

public void set_key_value(NodeKey key)

set_key_value

public void set_key_value(String key)

set_key_value

public void set_key_value(double key)

get_key_value

public NodeKey get_key_value()

read

public void read()
          throws IOException
Throws:
IOException

write

public void write()
           throws IOException,
                  xBaseJException
Throws:
IOException
xBaseJException

set_next

public void set_next(Node nxt)

set_prev

public void set_prev(Node prv)

get_next

public Node get_next()

get_prev

public Node get_prev()

set_prev_page

public void set_prev_page(int t)
                   throws xBaseJException
Throws:
xBaseJException

isBranch

public boolean isBranch()


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