Class SqlJetBtreeRecord
java.lang.Object
org.tmatesoft.sqljet.core.internal.vdbe.SqlJetBtreeRecord
- All Implemented Interfaces:
ISqlJetReleasable,ISqlJetBtreeRecord
Implements
ISqlJetBtreeRecord.-
Constructor Summary
ConstructorsConstructorDescriptionSqlJetBtreeRecord(List<ISqlJetVdbeMem> values) SqlJetBtreeRecord(ISqlJetBtreeCursor cursor, boolean isIndex, int fileFormat) SqlJetBtreeRecord(ISqlJetVdbeMem... values) -
Method Summary
Modifier and TypeMethodDescriptionintlonggetIntField(int field) Assuming the record contains N fields, the record format looks like this: hdr-size type 0 type 1 ... type N-1 data0 ... data N-1 Each type field is a varint representing the serial type of the corresponding data element (see sqlite3VdbeSerialType()).doublegetRealField(int field) static ISqlJetBtreeRecordgetRecord(SqlJetEncoding encoding, Object... values) getStringField(int field, SqlJetEncoding enc) voidrelease()
-
Constructor Details
-
SqlJetBtreeRecord
public SqlJetBtreeRecord(ISqlJetBtreeCursor cursor, boolean isIndex, int fileFormat) throws SqlJetException - Throws:
SqlJetException
-
SqlJetBtreeRecord
-
SqlJetBtreeRecord
-
-
Method Details
-
getFields
- Specified by:
getFieldsin interfaceISqlJetBtreeRecord- Returns:
- the fields
-
getRecord
public static ISqlJetBtreeRecord getRecord(SqlJetEncoding encoding, Object... values) throws SqlJetException - Throws:
SqlJetException
-
getFieldsCount
public int getFieldsCount()- Specified by:
getFieldsCountin interfaceISqlJetBtreeRecord- Returns:
- the fieldsCount
-
getStringField
- Specified by:
getStringFieldin interfaceISqlJetBtreeRecord- Parameters:
field-- Returns:
- Throws:
SqlJetException
-
getIntField
public long getIntField(int field) - Specified by:
getIntFieldin interfaceISqlJetBtreeRecord- Parameters:
field-- Returns:
-
getRealField
public double getRealField(int field) - Specified by:
getRealFieldin interfaceISqlJetBtreeRecord- Parameters:
field-- Returns:
-
getRawRecord
Assuming the record contains N fields, the record format looks like this:
Each type field is a varint representing the serial type of the corresponding data element (see sqlite3VdbeSerialType()). The hdr-size field is also a varint which is the offset from the beginning of the record to data0.hdr-size type 0 type 1 ... type N-1 data0 ... data N-1 - Specified by:
getRawRecordin interfaceISqlJetBtreeRecord- Returns:
-
release
public void release()- Specified by:
releasein interfaceISqlJetReleasable
-