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, 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) 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 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() 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 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; }
private String readFdocaString(int length, String encoding) throws DisconnectException, SqlException { if (length == 0) { return null; } // 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); } String s = null; try { s = new String(dataBuffer_, position_, length, encoding); } catch (java.io.UnsupportedEncodingException e) { netAgent_.accumulateChainBreakingReadExceptionAndThrow( new com.pivotal.gemfirexd.internal.client.am.DisconnectException( netAgent_, new ClientMessageId(SQLState.NET_ENCODING_NOT_SUPPORTED), e)); } position_ += length; return s; }
private String readFdocaString(int length, String encoding) throws DisconnectException, SqlException { if (length == 0) { return null; } // 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); } String s = null; try { s = new String(dataBuffer_, position_, length, encoding); } catch (java.io.UnsupportedEncodingException e) { netAgent_.accumulateChainBreakingReadExceptionAndThrow( new com.pivotal.gemfirexd.internal.client.am.DisconnectException( netAgent_, new ClientMessageId(SQLState.NET_ENCODING_NOT_SUPPORTED), e)); } position_ += length; return s; }