public class SerializeBlock extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getColTotalLengthByTableIndex(List<TableInfo> tableInfoList,
int index,
int toBebindColCount) |
static int |
getColumnSize(ColumnInfo column) |
static byte[] |
getStmt2BindBlock(long reqId,
long stmtId,
List<TableInfo> tableInfoList,
int toBeBindTableNameIndex,
int toBebindTagCount,
int toBebindColCount,
int precision) |
static int |
getTagTotalLengthByTableIndex(List<TableInfo> tableInfoList,
int index,
int toBebindTagCount) |
static byte[] |
intToBytes(int v) |
static byte[] |
longToBytes(long v) |
static void |
serializeByteArray(byte[] buf,
int offset,
byte[] data) |
static byte[] |
shortToBytes(int v) |
public static void serializeByteArray(byte[] buf,
int offset,
byte[] data)
public static int getTagTotalLengthByTableIndex(List<TableInfo> tableInfoList, int index, int toBebindTagCount) throws SQLException
SQLExceptionpublic static int getColTotalLengthByTableIndex(List<TableInfo> tableInfoList, int index, int toBebindColCount) throws SQLException
SQLExceptionpublic static int getColumnSize(ColumnInfo column) throws SQLException
SQLExceptionpublic static byte[] getStmt2BindBlock(long reqId,
long stmtId,
List<TableInfo> tableInfoList,
int toBeBindTableNameIndex,
int toBebindTagCount,
int toBebindColCount,
int precision)
throws IOException,
SQLException
IOExceptionSQLExceptionpublic static byte[] shortToBytes(int v)
public static byte[] intToBytes(int v)
public static byte[] longToBytes(long v)
Copyright © 2024. All rights reserved.