ISqlJetMemoryPointer |
getRawRecord()
Assuming the record contains N fields, the record format looks like this:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SqlJetBtreeRecord
public SqlJetBtreeRecord(ISqlJetBtreeCursor cursor,
boolean isIndex,
int fileFormat)
throws SqlJetException
- Throws:
SqlJetException
SqlJetBtreeRecord
public SqlJetBtreeRecord(java.util.List<ISqlJetVdbeMem> values)
SqlJetBtreeRecord
public SqlJetBtreeRecord(ISqlJetVdbeMem[] values,
int file_format)
SqlJetBtreeRecord
public SqlJetBtreeRecord(ISqlJetVdbeMem... values)
getFields
public java.util.List<ISqlJetVdbeMem> getFields()
- Specified by:
getFields in interface ISqlJetBtreeRecord
- Returns:
- the fields
getRecord
public static ISqlJetBtreeRecord getRecord(SqlJetEncoding encoding,
java.lang.Object... values)
throws SqlJetException
- Throws:
SqlJetException
getFieldsCount
public int getFieldsCount()
- Specified by:
getFieldsCount in interface ISqlJetBtreeRecord
- Returns:
- the fieldsCount
getStringField
public java.lang.String getStringField(int field,
SqlJetEncoding enc)
throws SqlJetException
- Specified by:
getStringField in interface ISqlJetBtreeRecord
- Returns:
-
- Throws:
SqlJetException
getIntField
public long getIntField(int field)
- Specified by:
getIntField in interface ISqlJetBtreeRecord
- Returns:
getRealField
public double getRealField(int field)
- Specified by:
getRealField in interface ISqlJetBtreeRecord
- Returns:
getRawRecord
public ISqlJetMemoryPointer getRawRecord()
- 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()). The hdr-size
field is also a varint which is the offset from the beginning of the
record to data0.
- Specified by:
getRawRecord in interface ISqlJetBtreeRecord
- Returns:
|