|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--com.legacyj.isam.ISAMKey
ISAMKey
Represents the data from the original two C structures keypart and keydesc, as referenced from keydesc:
struct keypart // key component description
{
short kp_start; // offset within data record
short kp_leng; // physical length
short kp_type; // isam key type
};
struct keydesc // full key description
{
short k_flags; // key characteristics
short k_nparts; // number of parts in key
struct keypart k_part[ISMAXPARTS]; // description of each part
short k_len; // complete key length
long k_rootnode; // root node record number
};
ISAMJ Copyright 2000-2001 LegacyJ Corp. All Rights Reserved.
| Field Summary | |
int |
k_flags |
int |
k_len |
int |
k_nparts |
long |
k_rootnode |
int[] |
kp_leng |
int[] |
kp_start |
int[] |
kp_type |
| Constructor Summary |
ISAMKey() |
| Method Summary | |
byte[] |
getData() Gets the native byte array representation of the key fields. |
int |
getFlags() Gets key flags. |
int |
getLen() INTERNAL TO NATIVE CODE ONLY. |
int |
getLength(int index)
Gets the length of the key part. |
int |
getParts() Gets the number of key parts. |
long |
getRootNode() INTERNAL TO NATIVE CODE ONLY. |
int |
getStart(int index) Gets the start of the key part. |
int |
getType(int index) Gets the type of the key part. |
void |
setData(byte[] data)
Sets the key fields using the native representation in a byte[] array. |
void |
setFlags(int value) Sets key flags. |
void |
setLen(int value) INTERNAL TO NATIVE CODE ONLY. |
void |
setLength(int index,
int value) Sets the length of the key part. |
void |
setParts(int value) Sets the number of key parts. |
void |
setRootNode(long value)
INTERNAL TO NATIVE CODE ONLY. |
void |
setStart(int index,
int value) Sets the start of the key part. |
void |
setType(int index,
int value) Sets the type of the key part. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
| Field Detail |
public int k_flags
public int k_nparts
public int[] kp_start
public int[] kp_leng
public int[] kp_type
public int k_len
public long k_rootnode
| Constructor Detail |
public ISAMKey()
| Method Detail |
public byte[] getData()
public void setData(byte[] data)
data - the native representation in a byte[] arraypublic int getFlags()
public void setFlags(int value)
value - the key flagspublic int getParts()
public void setParts(int value)
value - the number of key partspublic int getStart(int index)
index - key part
public void setStart(int index,
int value)
index - key partvalue - start valuepublic int getLength(int index)
index - key part
public void setLength(int index,
int value)
index - key partvalue - length of the indexed key partpublic int getType(int index)
index - key part
public void setType(int index,
int value)
index - key partpublic int getLen()
public void setLen(int value)
value - the key length in partspublic long getRootNode()
public void setRootNode(long value)
value - the root node
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
©Copyright LegacyJ Corporation 2001