@Override public void setTimestamp(Long ts, boolean destroy) throws OutOfHybridMemory, RetrieveDurableEntityError { m_unsafe_0DCC8A.putLong(m_holder_A8BF22.get() + 8, ts); }
public void syncToLocal() { if (m_dchunk.getAllocator() instanceof NonVolatileMemAllocator) { NonVolatileMemAllocator alloc = (NonVolatileMemAllocator) m_dchunk.getAllocator(); alloc.syncToLocal(m_dchunk.get() + m_offset, m_size, false); } else { throw new UnsupportedOperationException("The ChunkBuffer does not backed by a non-volatile allocator"); } }
@Override public Long getTimestamp() throws RetrieveDurableEntityError { return m_unsafe_0DCC8A.getLong(m_holder_A8BF22.get() + 8); }
public void syncToNonVolatileMemory() { if (m_dchunk.getAllocator() instanceof NonVolatileMemAllocator) { NonVolatileMemAllocator alloc = (NonVolatileMemAllocator) m_dchunk.getAllocator(); alloc.syncToNonVolatileMemory(m_dchunk.get() + m_offset, m_size, false); } else { throw new UnsupportedOperationException("The ChunkBuffer does not backed by a non-volatile allocator"); } }
@Override public void setColor(boolean color) { m_unsafe_EE978A.putByte(m_holder_E5EEE3.get() + 32, (byte) (color? 1 : 0)); }
public void syncToNonVolatileMemory(long offset, int length) { if (offset < 0 || length < 0 || offset + length > this.m_size) { throw new OutOfBoundsException("The requested offset and length are out of bounds for this buffer: length = " + length + " , offset = " + offset); } if (m_dchunk.getAllocator() instanceof NonVolatileMemAllocator) { NonVolatileMemAllocator alloc = (NonVolatileMemAllocator) m_dchunk.getAllocator(); alloc.syncToNonVolatileMemory(m_dchunk.get() + m_offset + offset, length, false); } else { throw new UnsupportedOperationException("The ChunkBuffer does not backed by a non-volatile allocator"); } }
@Override public void setPrice(Double price, boolean destroy) throws OutOfHybridMemory, RetrieveDurableEntityError { m_unsafe_760FBE.putDouble(m_holder_68BA57.get() + 8, price); }
public void syncToLocal(long offset, int length) { if (offset < 0 || length < 0 || offset + length > this.m_size) { throw new OutOfBoundsException("The requested offset and length are out of bounds for this buffer: length = " + length + " , offset = " + offset); } if (m_dchunk.getAllocator() instanceof NonVolatileMemAllocator) { NonVolatileMemAllocator alloc = (NonVolatileMemAllocator) m_dchunk.getAllocator(); alloc.syncToLocal(m_dchunk.get() + m_offset + offset, length, false); } else { throw new UnsupportedOperationException("The ChunkBuffer does not backed by a non-volatile allocator"); } }
@Override public Double getPrice() throws RetrieveDurableEntityError { return m_unsafe_760FBE.getDouble(m_holder_68BA57.get() + 8); }
public void syncToVolatileMemory(long offset, int length) { if (offset < 0 || length < 0 || offset + length > this.m_size) { throw new OutOfBoundsException("The requested offset and length are out of bounds for this buffer: length = " + length + " , offset = " + offset); } m_dchunk.getAllocator().syncToVolatileMemory(m_dchunk.get() + m_offset + offset, length, false); }
@Override public DurableSinglyLinkedList<Product> getItems() throws RetrieveDurableEntityError { if (null == m_items_2E6397) { long phandler = m_unsafe_0DCC8A.getAddress(m_holder_A8BF22.get() + 24); if (0L != phandler) { m_items_2E6397 = org.apache.mnemonic.collections.DurableSinglyLinkedListFactory.restore(m_allocator_42A80A, m_node_efproxies, m_node_gftypes, phandler, m_autoreclaim_FA3692, m_reclaimcontext_D713D9); } } return m_items_2E6397; }
@Override public TreeNode<E> getLeft() { if (null == m_left_491DCA) { long phandler = m_unsafe_EE978A.getAddress(m_holder_E5EEE3.get() + 8); if (0L != phandler) { m_left_491DCA = org.apache.mnemonic.collections.TreeNodeFactory.restore(m_allocator_873DA6, m_node_efproxies, m_node_gftypes, phandler, m_autoreclaim_3AECF4, m_reclaimcontext_11DAB9); } } return m_left_491DCA; }
@Override public TreeNode<E> getRight() { if (null == m_right_EE76A8) { long phandler = m_unsafe_EE978A.getAddress(m_holder_E5EEE3.get() + 16); if (0L != phandler) { m_right_EE76A8 = org.apache.mnemonic.collections.TreeNodeFactory.restore(m_allocator_873DA6, m_node_efproxies, m_node_gftypes, phandler, m_autoreclaim_3AECF4, m_reclaimcontext_11DAB9); } } return m_right_EE76A8; }
@Override public Customer getCustomer() throws RetrieveDurableEntityError { if (null == m_customer_680E5D) { long phandler = m_unsafe_0DCC8A.getAddress(m_holder_A8BF22.get() + 16); if (0L != phandler) { m_customer_680E5D = org.apache.mnemonic.examples.CustomerFactory.restore(m_allocator_42A80A, null, null, phandler, m_autoreclaim_FA3692, m_reclaimcontext_D713D9); } } return m_customer_680E5D; }
@Override public SinglyLinkedNode<E> getNext() { if (null == m_next_AE9475) { long phandler = m_unsafe_14FE52.getAddress(m_holder_2B4355.get() + 8); if (0L != phandler) { m_next_AE9475 = org.apache.mnemonic.collections.SinglyLinkedNodeFactory.restore(m_allocator_506034, m_node_efproxies, m_node_gftypes, phandler, m_autoreclaim_8BE701, m_reclaimcontext_24E34B); } } return m_next_AE9475; }
@Override public TreeNode<E> getParent() { if (null == m_parent_CA94DC) { long phandler = m_unsafe_EE978A.getAddress(m_holder_E5EEE3.get() + 24); if (0L != phandler) { m_parent_CA94DC = org.apache.mnemonic.collections.TreeNodeFactory.restore(m_allocator_873DA6, m_node_efproxies, m_node_gftypes, phandler, m_autoreclaim_3AECF4, m_reclaimcontext_11DAB9); } } return m_parent_CA94DC; }
@Override public String getId() throws RetrieveDurableEntityError { if (null == m_id_367F9B) { long phandler = m_unsafe_0DCC8A.getAddress(m_holder_A8BF22.get() + 0); if (0L != phandler) { m_id_367F9B = m_allocator_42A80A.retrieveBuffer(phandler, m_autoreclaim_FA3692, m_reclaimcontext_D713D9); if (null == m_id_367F9B) { throw new RetrieveDurableEntityError("Retrieve String Buffer Failure."); } } } return null == m_id_367F9B ? null : m_id_367F9B.get().asCharBuffer().toString(); }
@Override public String getName() throws RetrieveDurableEntityError { if (null == m_name_9807CF) { long phandler = m_unsafe_760FBE.getAddress(m_holder_68BA57.get() + 0); if (0L != phandler) { m_name_9807CF = m_allocator_77CA34.retrieveBuffer(phandler, m_autoreclaim_7E4A25, m_reclaimcontext_B5B531); if (null == m_name_9807CF) { throw new RetrieveDurableEntityError("Retrieve String Buffer Failure."); } } } return null == m_name_9807CF ? null : m_name_9807CF.get().asCharBuffer().toString(); }
@Override public String getName() throws RetrieveDurableEntityError { if (null == m_name_1B779B) { long phandler = m_unsafe_B1757C.getAddress(m_holder_3CE8C3.get() + 0); if (0L != phandler) { m_name_1B779B = m_allocator_11A68B.retrieveBuffer(phandler, m_autoreclaim_071A8E, m_reclaimcontext_9C2BE7); if (null == m_name_1B779B) { throw new RetrieveDurableEntityError("Retrieve String Buffer Failure."); } } } return null == m_name_1B779B ? null : m_name_1B779B.get().asCharBuffer().toString(); }
@Override public String getStr() throws RetrieveDurableEntityError { if (null == m_str_A55313) { long phandler = m_unsafe_AE4FB2.getAddress(m_holder_5BC267.get() + 0); if (0L != phandler) { m_str_A55313 = m_allocator_CF10A9.retrieveBuffer(phandler, m_autoreclaim_8F4B75, m_reclaimcontext_998750); if (null == m_str_A55313) { throw new RetrieveDurableEntityError("Retrieve String Buffer Failure."); } } } return null == m_str_A55313 ? null : m_str_A55313.get().asCharBuffer().toString(); }