本文整理汇总了Java中org.hsqldb.rowio.RowInputBinary类的典型用法代码示例。如果您正苦于以下问题:Java RowInputBinary类的具体用法?Java RowInputBinary怎么用?Java RowInputBinary使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RowInputBinary类属于org.hsqldb.rowio包,在下文中一共展示了RowInputBinary类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: RowDiskDataChange
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
/**
* Constructor when read from the disk into the Cache.
*
* @param t table
* @param in data source
* @throws IOException
*/
public RowDiskDataChange(Session session, TableBase t,
RowInputInterface in) throws IOException {
super(t, in);
targetTable = t.database.schemaManager.findTable(session,
(String) rowData[COL_POS_TABLE_NAME],
(String) rowData[COL_POS_SCHEMA_NAME], null);
if ((Boolean) rowData[COL_POS_IS_UPDATE]) {
updateData = in.readData(targetTable.colTypes);
RowInputBinary bin = (RowInputBinary) in;
if (bin.readNull()) {
updateColMap = null;
} else {
updateColMap = bin.readIntArray();
}
} else {
updateData = null;
updateColMap = null;
}
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:32,代码来源:RowDiskDataChange.java
示例2: ServerConnection
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
/**
* Creates a new ServerConnection to the specified Server on the
* specified socket.
*
* @param socket the network socket on which Server communication
* takes place
* @param server the Server instance to which the object
* represents a connection
*/
ServerConnection(Socket socket, Server server) {
RowOutputBinary rowOutTemp = new RowOutputBinary(mainBuffer);
rowIn = new RowInputBinary(rowOutTemp);
rowOut = rowOutTemp;
//
Thread runnerThread;
this.socket = socket;
this.server = server;
mThread = mCurrentThread.getAndIncrement();
synchronized (server.serverConnSet) {
server.serverConnSet.add(this);
}
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:28,代码来源:ServerConnection.java
示例3: newResult
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
public static Result newResult(Session session, int mode,
DataInput dataInput,
RowInputBinary in) throws IOException {
try {
if (mode == ResultConstants.LARGE_OBJECT_OP) {
return ResultLob.newLob(dataInput, false);
}
Result result = newResult(session, dataInput, in, mode);
return result;
} catch (IOException e) {
throw Error.error(ErrorCode.X_08000);
}
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:17,代码来源:Result.java
示例4: readAdditionalResults
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
public void readAdditionalResults(SessionInterface session,
DataInputStream inputStream,
RowInputBinary in) throws IOException {
Result currentResult = this;
setSession(session);
while (true) {
int addedResultMode = inputStream.readByte();
if (addedResultMode == ResultConstants.NONE) {
return;
}
currentResult = newResult(null, inputStream, in, addedResultMode);
addChainedResult(currentResult);
}
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:21,代码来源:Result.java
示例5: newResult
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
public static Result newResult(Session session, int mode,
DataInput dataInput,
RowInputBinary in)
throws IOException, HsqlException {
try {
if (mode == ResultConstants.LARGE_OBJECT_OP) {
return ResultLob.newLob(dataInput, false);
}
Result result = newResult(session, dataInput, in, mode);
return result;
} catch (IOException e) {
throw Error.error(ErrorCode.X_08000);
}
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:18,代码来源:Result.java
示例6: RowDiskDataChange
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
/**
* Constructor when read from the disk into the Cache.
*
* @param t table
* @param in data source
* @throws IOException
*/
public RowDiskDataChange(Session session, TableBase t,
RowInputInterface in) throws IOException {
super(t, in);
targetTable = t.database.schemaManager.getTable(session,
(String) rowData[COL_POS_TABLE_NAME],
(String) rowData[COL_POS_SCHEMA_NAME]);
if ((Boolean) rowData[COL_POS_IS_UPDATE]) {
updateData = in.readData(targetTable.colTypes);
RowInputBinary bin = (RowInputBinary) in;
if (bin.readNull()) {
updateColMap = null;
} else {
updateColMap = bin.readIntArray();
}
} else {
updateData = null;
updateColMap = null;
}
}
开发者ID:Julien35,项目名称:dev-courses,代码行数:32,代码来源:RowDiskDataChange.java
示例7: readAdditionalResults
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
public void readAdditionalResults(SessionInterface session,
DataInputStream inputStream,
RowInputBinary in)
throws IOException, HsqlException {
Result currentResult = this;
setSession(session);
while (true) {
int addedResultMode = inputStream.readByte();
if (addedResultMode == ResultConstants.NONE) {
return;
}
currentResult = newResult(null, inputStream, in, addedResultMode);
addChainedResult(currentResult);
}
}
开发者ID:Julien35,项目名称:dev-courses,代码行数:22,代码来源:Result.java
示例8: read
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
void read(RowInputBinary in) throws HsqlException, IOException {
int l = in.readIntData();
prepareData(l);
if (isParameterDescription) {
paramMode = new int[l];
}
for (int i = 0; i < l; i++) {
colTypes[i] = in.readType();
colLabels[i] = in.readString();
tableNames[i] = in.readString();
colNames[i] = in.readString();
classNames[i] = in.readString();
if (isTableColumn(i)) {
readTableColumnAttrs(in, i);
}
if (isParameterDescription) {
paramMode[i] = in.readIntData();
}
}
}
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:27,代码来源:Result.java
示例9: readMultiResult
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
void readMultiResult(RowInputBinary in)
throws HsqlException, IOException {
mode = ResultConstants.MULTI;
databaseID = in.readIntData();
sessionID = in.readIntData();
int count = in.readIntData();
for (int i = 0; i < count; i++) {
// Currently required for the outer result, but can simply
// be ignored for sub-results
in.readIntData();
add(new Object[]{ new Result(in) });
}
}
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:18,代码来源:Result.java
示例10: initStructures
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
/**
* resultOut is reused to trasmit all remote calls for session management.
* Here the structure is preset for sending attributes.
*/
private void initStructures() {
rowOut = new RowOutputBinary(mainBuffer);
rowIn = new RowInputBinary(rowOut);
resultOut = new Result(ResultConstants.DATA, 7);
resultOut.metaData.colNames = resultOut.metaData.colLabels =
resultOut.metaData.tableNames = new String[] {
"", "", "", "", "", "", ""
};
resultOut.add(new Object[7]);
resultOut.metaData.colTypes = new int[] {
Types.VARCHAR, Types.VARCHAR, Types.INTEGER, Types.INTEGER,
Types.BOOLEAN, Types.BOOLEAN, Types.BOOLEAN
};
}
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:22,代码来源:HSQLClientConnection.java
示例11: RowDiskDataChange
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
/**
* Constructor when read from the disk into the Cache.
*
* @param t table
* @param in data source
* @throws IOException
*/
public RowDiskDataChange(Session session, TableBase t,
RowInputInterface in) throws IOException {
super(t, in);
targetTable = t.database.schemaManager.getTable(
session,
(String) rowData[COL_POS_TABLE_NAME],
(String) rowData[COL_POS_SCHEMA_NAME]);
if ((Boolean) rowData[COL_POS_IS_UPDATE]) {
updateData = in.readData(targetTable.colTypes);
RowInputBinary bin = (RowInputBinary) in;
if (bin.readNull()) {
updateColMap = null;
} else {
updateColMap = bin.readIntArray();
}
} else {
updateData = null;
updateColMap = null;
}
}
开发者ID:RabadanLab,项目名称:Pegasus,代码行数:33,代码来源:RowDiskDataChange.java
示例12: ServerConnection
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
/**
* Creates a new ServerConnection to the specified Server on the
* specified socket.
*
* @param socket the network socket on which Server communication
* takes place
* @param server the Server instance to which the object
* represents a connection
*/
ServerConnection(Socket socket, Server server) {
RowOutputBinary rowOutTemp = new RowOutputBinary(mainBuffer);
rowIn = new RowInputBinary(rowOutTemp);
rowOut = rowOutTemp;
//
Thread runnerThread;
this.socket = socket;
this.server = server;
synchronized (ServerConnection.class) {
mThread = mCurrentThread++;
}
synchronized (server.serverConnSet) {
server.serverConnSet.add(this);
}
}
开发者ID:RabadanLab,项目名称:Pegasus,代码行数:31,代码来源:ServerConnection.java
示例13: readLobResults
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
public void readLobResults(SessionInterface session,
DataInputStream inputStream,
RowInputBinary in) throws IOException {
Result currentResult = this;
boolean hasLob = false;
setSession(session);
while (true) {
int addedResultMode = inputStream.readByte();
if (addedResultMode == ResultConstants.LARGE_OBJECT_OP) {
ResultLob resultLob = ResultLob.newLob(inputStream, false);
if (session instanceof Session) {
((Session) session).allocateResultLob(resultLob,
inputStream);
} else {
currentResult.addLobResult(resultLob);
}
hasLob = true;
continue;
} else if (addedResultMode == ResultConstants.NONE) {
break;
} else {
throw Error.runtimeError(ErrorCode.U_S0500, "Result");
}
}
if (hasLob) {
((Session) session).registerResultLobs(currentResult);
}
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:37,代码来源:Result.java
示例14: readSimple
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
private static Object[] readSimple(RowInputBinary in,
ResultMetaData meta)
throws IOException {
int size = in.readInt();
return in.readData(meta.columnTypes);
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:9,代码来源:Result.java
示例15: initStructures
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
/**
* resultOut is reused to transmit all remote calls for session management.
* Here the structure is preset for sending attributes.
*/
private void initStructures() {
RowOutputBinary rowOutTemp = new RowOutputBinary(mainBuffer);
rowOut = rowOutTemp;
rowIn = new RowInputBinary(rowOutTemp);
resultOut = Result.newSessionAttributesResult();
}
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:13,代码来源:ClientConnection.java
示例16: readDataType
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
Type readDataType(RowInputBinary in) throws IOException {
int typeCode = in.readType();
long size = in.readLong();
int scale = in.readInt();
return Type.getType(typeCode, 0, size, scale);
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:9,代码来源:ResultMetaData.java
示例17: readExecuteProperties
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
public static void readExecuteProperties(Session session, Result result,
DataInputStream dataInput, RowInputBinary in) {
try {
int length = dataInput.readInt();
in.resetRow(0, length);
byte[] byteArray = in.getBuffer();
final int offset = 4;
dataInput.readFully(byteArray, offset, length - offset);
result.updateCount = in.readInt();
result.fetchSize = in.readInt();
result.statementID = in.readLong();
result.rsScrollability = in.readShort();
result.rsConcurrency = in.readShort();
result.rsHoldability = in.readShort();
Statement statement =
session.database.compiledStatementManager.getStatement(session,
result.statementID);
result.statement = statement;
result.metaData = result.statement.getParametersMetaData();
result.navigator.readSimple(in, result.metaData);
} catch (IOException e) {
throw Error.error(ErrorCode.X_08000);
}
}
开发者ID:s-store,项目名称:sstore-soft,代码行数:33,代码来源:Result.java
示例18: readLobResults
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
public void readLobResults(SessionInterface session,
DataInputStream inputStream,
RowInputBinary in)
throws IOException, HsqlException {
Result currentResult = this;
boolean hasLob = false;
setSession(session);
while (true) {
int addedResultMode = inputStream.readByte();
if (addedResultMode == ResultConstants.LARGE_OBJECT_OP) {
ResultLob resultLob = ResultLob.newLob(inputStream, false);
if (session instanceof Session) {
((Session) session).allocateResultLob(resultLob,
inputStream);
} else {
currentResult.addLobResult(resultLob);
}
hasLob = true;
continue;
} else if (addedResultMode == ResultConstants.NONE) {
break;
} else {
throw Error.runtimeError(ErrorCode.U_S0500, "Result");
}
}
if (hasLob) {
((Session) session).registerResultLobs(currentResult);
}
}
开发者ID:Julien35,项目名称:dev-courses,代码行数:38,代码来源:Result.java
示例19: initStructures
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
/**
* resultOut is reused to trasmit all remote calls for session management.
* Here the structure is preset for sending attributes.
*/
private void initStructures() {
RowOutputBinary rowOutTemp = new RowOutputBinary(mainBuffer);
rowOut = rowOutTemp;
rowIn = new RowInputBinary(rowOutTemp);
resultOut = Result.newSessionAttributesResult();
}
开发者ID:Julien35,项目名称:dev-courses,代码行数:13,代码来源:ClientConnection.java
示例20: readTableColumnAttrs
import org.hsqldb.rowio.RowInputBinary; //导入依赖的package包/类
private void readTableColumnAttrs(RowInputBinary in,
int i)
throws IOException, HsqlException {
// no point in transmitting these yet
// if ever implemented, must follow logic of switch as outlined in comments
// for corresponding write method
// colScale[i] = in.readIntData();
// colSize[i] = in.readIntData();
decodeTableColumnAttrs(in.readIntData(), i);
catalogNames[i] = in.readString();
schemaNames[i] = in.readString();
}
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:15,代码来源:Result.java
注:本文中的org.hsqldb.rowio.RowInputBinary类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论