@Override public int writeBytes(byte[] outBytes, int offset, DataTypeDescriptor dtd) { if (SanityManager.DEBUG) { SanityManager.ASSERT(!isNull(), "writeBytes() is not supposed to be called for null values."); } HeapDataOutputStream hdos = new HeapDataOutputStream(outBytes, offset, outBytes.length - offset); hdos.disallowExpansion(DISALLOW_EXPANSION); try { toDataForOptimizedResultHolder(hdos); } catch (IOException ioe) { throw GemFireXDRuntimeException.newRuntimeException( "Exception in UserType.writeBytes.", ioe); } return hdos.size(); }
@Override public int writeBytes(byte[] outBytes, int offset, DataTypeDescriptor dtd) { if (SanityManager.DEBUG) { SanityManager.ASSERT(!isNull(), "writeBytes() is not supposed to be called for null values."); } HeapDataOutputStream hdos = new HeapDataOutputStream(outBytes, offset, outBytes.length - offset); hdos.disallowExpansion(DISALLOW_EXPANSION); try { toDataForOptimizedResultHolder(hdos); } catch (IOException ioe) { throw GemFireXDRuntimeException.newRuntimeException( "Exception in UserType.writeBytes.", ioe); } return hdos.size(); }
@Override public int writeBytes(byte[] outBytes, int offset, DataTypeDescriptor dtd) { if (SanityManager.DEBUG) { SanityManager.ASSERT(!isNull(), "writeBytes() is not supposed to be called for null values."); } HeapDataOutputStream hdos = new HeapDataOutputStream(outBytes, offset, outBytes.length - offset); hdos.disallowExpansion(DISALLOW_EXPANSION); try { toDataForOptimizedResultHolder(hdos); } catch (IOException ioe) { throw GemFireXDRuntimeException.newRuntimeException( "Exception in UserType.writeBytes.", ioe); } return hdos.size(); }
outStream.disallowExpansion(CHUNK_FULL); // sets the mark where rollback occurs on CHUNK_FULL
outStream.disallowExpansion(CHUNK_FULL); // sets the mark where rollback occurs on CHUNK_FULL
outStream.disallowExpansion(CHUNK_FULL); // sets the mark where rollback occurs on CHUNK_FULL
outStream.disallowExpansion(CHUNK_FULL); // sets the mark where rollback occurs on CHUNK_FULL