private void checkAndThrowReceivedEndqryrm(int lastValidBytePositionBeforeFetch) throws SqlException { // if we have received more data in the dataBuffer_, just return. if (lastValidBytePosition_ > lastValidBytePositionBeforeFetch) { return; } checkAndThrowReceivedEndqryrm(); }
private void checkAndThrowReceivedEndqryrm(int lastValidBytePositionBeforeFetch) throws SqlException { // if we have received more data in the dataBuffer_, just return. if (lastValidBytePosition_ > lastValidBytePositionBeforeFetch) { return; } checkAndThrowReceivedEndqryrm(); }
private int readFdocaOneByte() throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if (position_ == lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } return dataBuffer_[position_++] & 0xff; }
private int skipFdocaBytes(int length) throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if ((position_ + length) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } position_ += length; return length; }
private int readFdocaTwoByteLength(int index) throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if ((position_ + 2) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(index); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } return ((dataBuffer_[position_++] & 0xff) << 8) + ((dataBuffer_[position_++] & 0xff) << 0); }
private int readFdocaOneByte() throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if (position_ == lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } return dataBuffer_[position_++] & 0xff; }
private int readFdocaOneByte(int index) throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if (position_ == lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(index); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } return dataBuffer_[position_++] & 0xff; }
private int readFdocaOneByte(int index) throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if (position_ == lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(index); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } return dataBuffer_[position_++] & 0xff; }
private int skipFdocaBytes(int length) throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if ((position_ + length) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } position_ += length; return length; }
private int skipFdocaBytes(int length, int index) throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if ((position_ + length) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(index); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } position_ += length; return length; }
private int skipFdocaBytes(int length, int index) throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if ((position_ + length) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(index); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } position_ += length; return length; }
private int readFdocaTwoByteLength() throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if ((position_ + 2) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } return ((dataBuffer_[position_++] & 0xff) << 8) + ((dataBuffer_[position_++] & 0xff) << 0); }
private int readFdocaTwoByteLength(int index) throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if ((position_ + 2) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(index); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } return ((dataBuffer_[position_++] & 0xff) << 8) + ((dataBuffer_[position_++] & 0xff) << 0); }
private int readFdocaTwoByteLength() throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if ((position_ + 2) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } return ((dataBuffer_[position_++] & 0xff) << 8) + ((dataBuffer_[position_++] & 0xff) << 0); }
private byte[] readFdocaBytes(int length) throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { byte[] b = new byte[length]; ; // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if ((position_ + length) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } for (int i = 0; i < length; i++) { b[i] = dataBuffer_[position_++]; } return b; }
private byte[] readFdocaBytes(int length) throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { byte[] b = new byte[length]; ; // For singleton select, the complete row always comes back, even if multiple query blocks are required, // so there is no need to drive a flowFetch (continue query) request for singleton select. if ((position_ + length) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } for (int i = 0; i < length; i++) { b[i] = dataBuffer_[position_++]; } return b; }
private int readFdocaInt() throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { if ((position_ + 4) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } int i = SignedBinary.getInt(dataBuffer_, position_); position_ += 4; return i; }
private int readFdocaInt() throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { if ((position_ + 4) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was received, // throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } int i = SignedBinary.getInt(dataBuffer_, position_); position_ += 4; return i; }
private long readFdocaLong() throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { if ((position_ + 8) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was // received, throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } long i = SignedBinary.getLong(dataBuffer_, position_); position_ += 8; return i; }
private long readFdocaLong() throws com.pivotal.gemfirexd.internal.client.am.DisconnectException, SqlException { if ((position_ + 8) > lastValidBytePosition_) { // Check for ENDQRYRM, throw SqlException if already received one. checkAndThrowReceivedEndqryrm(); // Send CNTQRY to complete the row/rowset. int lastValidByteBeforeFetch = completeSplitRow(); // if lastValidBytePosition_ has not changed, and an ENDQRYRM was // received, throw a SqlException for the ENDQRYRM. checkAndThrowReceivedEndqryrm(lastValidByteBeforeFetch); } long i = SignedBinary.getLong(dataBuffer_, position_); position_ += 8; return i; }