Class SqlJetKeyInfo
- java.lang.Object
-
- org.tmatesoft.sqljet.core.internal.vdbe.SqlJetKeyInfo
-
- All Implemented Interfaces:
ISqlJetKeyInfo
public class SqlJetKeyInfo extends java.lang.Object implements ISqlJetKeyInfo
-
-
Constructor Summary
Constructors Constructor Description SqlJetKeyInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISqlJetCollSeqgetCollating(int i)SqlJetEncodinggetEnc()intgetNField()booleangetSortOrder(int i)SqlJetUnpackedRecordrecordUnpack(int nKey, ISqlJetMemoryPointer pKey)Given the nKey-byte encoding of a record in pKey[], parse the record into a UnpackedRecord structure.voidsetCollating(int i, ISqlJetCollSeq coll)voidsetEnc(SqlJetEncoding enc)voidsetNField(int field)voidsetSortOrder(int i, boolean desc)
-
-
-
Method Detail
-
recordUnpack
public SqlJetUnpackedRecord recordUnpack(int nKey, ISqlJetMemoryPointer pKey)
Description copied from interface:ISqlJetKeyInfoGiven the nKey-byte encoding of a record in pKey[], parse the record into a UnpackedRecord structure. Return a pointer to that structure. The calling function might provide szSpace bytes of memory space at pSpace. This space can be used to hold the returned VDbeParsedRecord structure if it is large enough. If it is not big enough, space is obtained from sqlite3_malloc(). The returned structure should be closed by a call to sqlite3VdbeDeleteUnpackedRecord().- Specified by:
recordUnpackin interfaceISqlJetKeyInfo- Parameters:
nKey- Size of the binary recordpKey- The binary record- Returns:
-
getNField
public int getNField()
- Returns:
- the nField
-
setNField
public void setNField(int field)
- Parameters:
field- the nField to set
-
getEnc
public SqlJetEncoding getEnc()
- Returns:
- the enc
-
setEnc
public void setEnc(SqlJetEncoding enc)
- Parameters:
enc- the enc to set
-
setSortOrder
public void setSortOrder(int i, boolean desc) throws SqlJetException- Throws:
SqlJetException
-
getSortOrder
public boolean getSortOrder(int i) throws SqlJetException- Throws:
SqlJetException
-
setCollating
public void setCollating(int i, ISqlJetCollSeq coll) throws SqlJetException- Throws:
SqlJetException
-
getCollating
public ISqlJetCollSeq getCollating(int i) throws SqlJetException
- Throws:
SqlJetException
-
-