/** * Create an ArrayInputStream with the passed in data. * The position is set to 0 and the limit is the entire byte array. * @param data */ public ArrayInputStream(byte[] data) { super(); setData(data); oi = new com.pivotal.gemfirexd.internal.iapi.services.io.FormatIdInputStream(this); }
/** * Create an ArrayInputStream with the passed in data. * The position is set to 0 and the limit is the entire byte array. * @param data */ public ArrayInputStream(byte[] data) { super(); setData(data); oi = new com.pivotal.gemfirexd.internal.iapi.services.io.FormatIdInputStream(this); }
/** * Create an ArrayInputStream with the passed in data. * The position is set to 0 and the limit is the entire byte array. * @param data */ public ArrayInputStream(byte[] data) { super(); setData(data); oi = new com.pivotal.gemfirexd.internal.iapi.services.io.FormatIdInputStream(this); }
/** * Initialize the StoredPage. * <p> * Initialize the object, ie. perform work normally perfomed in constructor. * Called by setIdentity() and createIdentity() - the Cacheable interfaces * which are used to move a page in/out of cache. **/ protected void initialize() { super.initialize(); if (rawDataIn == null) { rawDataIn = new ArrayInputStream(); checksum = new CRC32(); } if (pageData != null) rawDataIn.setData(pageData); }
/** * Initialize the StoredPage. * <p> * Initialize the object, ie. perform work normally perfomed in constructor. * Called by setIdentity() and createIdentity() - the Cacheable interfaces * which are used to move a page in/out of cache. **/ protected void initialize() { super.initialize(); if (rawDataIn == null) { rawDataIn = new ArrayInputStream(); checksum = new CRC32(); } if (pageData != null) rawDataIn.setData(pageData); }
/** * Initialize the StoredPage. * <p> * Initialize the object, ie. perform work normally perfomed in constructor. * Called by setIdentity() and createIdentity() - the Cacheable interfaces * which are used to move a page in/out of cache. **/ protected void initialize() { super.initialize(); if (rawDataIn == null) { rawDataIn = new ArrayInputStream(); checksum = new CRC32(); } if (pageData != null) rawDataIn.setData(pageData); }
rawDataIn.setData(pageData);
rawDataIn.setData(pageData);
rawDataIn.setData(pageData);
public void actionUpdateField( RawTransaction t, BasePage page, int slot, int recordId, int fieldId, Object newValue, LogicalUndo undo) throws StandardException { outBytes.reset(); try { page.logColumn(slot, fieldId, newValue, (DynamicByteArrayOutputStream) outBytes, 100); limitIn.setData(outBytes.getByteArray()); limitIn.setPosition(outBytes.getBeginPosition()); limitIn.setLimit(outBytes.getPosition() - outBytes.getBeginPosition()); page.storeField((LogInstant) null, slot, fieldId, limitIn); } catch (IOException ioe) { throw StandardException.newException( SQLState.DATA_UNEXPECTED_EXCEPTION, ioe); } }
public void actionUpdateField( RawTransaction t, BasePage page, int slot, int recordId, int fieldId, Object newValue, LogicalUndo undo) throws StandardException { outBytes.reset(); try { page.logColumn(slot, fieldId, newValue, (DynamicByteArrayOutputStream) outBytes, 100); limitIn.setData(outBytes.getByteArray()); limitIn.setPosition(outBytes.getBeginPosition()); limitIn.setLimit(outBytes.getPosition() - outBytes.getBeginPosition()); page.storeField((LogInstant) null, slot, fieldId, limitIn); } catch (IOException ioe) { throw StandardException.newException( SQLState.DATA_UNEXPECTED_EXCEPTION, ioe); } }
public void actionUpdateField( RawTransaction t, BasePage page, int slot, int recordId, int fieldId, Object newValue, LogicalUndo undo) throws StandardException { outBytes.reset(); try { page.logColumn(slot, fieldId, newValue, (DynamicByteArrayOutputStream) outBytes, 100); limitIn.setData(outBytes.getByteArray()); limitIn.setPosition(outBytes.getBeginPosition()); limitIn.setLimit(outBytes.getPosition() - outBytes.getBeginPosition()); page.storeField((LogInstant) null, slot, fieldId, limitIn); } catch (IOException ioe) { throw StandardException.newException( SQLState.DATA_UNEXPECTED_EXCEPTION, ioe); } }
realSpaceOnPage, 100); limitIn.setData(outBytes.getByteArray()); limitIn.setPosition(outBytes.getBeginPosition()); limitIn.setLimit(outBytes.getPosition() - outBytes.getBeginPosition());
realSpaceOnPage, 100); limitIn.setData(outBytes.getByteArray()); limitIn.setPosition(outBytes.getBeginPosition()); limitIn.setLimit(outBytes.getPosition() - outBytes.getBeginPosition());
realSpaceOnPage, 100); limitIn.setData(outBytes.getByteArray()); limitIn.setPosition(outBytes.getBeginPosition()); limitIn.setLimit(outBytes.getPosition() - outBytes.getBeginPosition());
limitIn.setData(outBytes.getByteArray()); limitIn.setPosition(outBytes.getBeginPosition()); limitIn.setLimit(outBytes.getPosition() - outBytes.getBeginPosition());
limitIn.setData(outBytes.getByteArray()); limitIn.setPosition(outBytes.getBeginPosition()); limitIn.setLimit(outBytes.getPosition() - outBytes.getBeginPosition());
limitIn.setData(outBytes.getByteArray()); limitIn.setPosition(outBytes.getBeginPosition()); limitIn.setLimit(outBytes.getPosition() - outBytes.getBeginPosition());
outBytes, (RecordHandle)null); limitIn.setData(outBytes.getByteArray()); limitIn.setPosition(outBytes.getBeginPosition()); limitIn.setLimit(outBytes.getPosition() - outBytes.getBeginPosition());
outBytes, (RecordHandle)null); limitIn.setData(outBytes.getByteArray()); limitIn.setPosition(outBytes.getBeginPosition()); limitIn.setLimit(outBytes.getPosition() - outBytes.getBeginPosition());