@Override public String toString() { return EntryEventImpl.deserialize(regionkey) + " {" + seqNum + "}"; } }
public Object getDeserializedForReading() { Object v = this.value; if (v instanceof byte[]) { return EntryEventImpl.deserialize((byte[])v); } else { return v; } } public Object getDeserializedWritableCopy(Region r, RegionEntry re) {
public Object getDeserializedForReading() { Object v = this.value; if (v instanceof byte[]) { return EntryEventImpl.deserialize((byte[])v); } else { return v; } } public Object getDeserializedWritableCopy(Region r, RegionEntry re) {
protected Object deserialize(byte[] serializedBytes) { Object deserializedObject = serializedBytes; // This is a debugging method so ignore all exceptions like // ClassNotFoundException try { deserializedObject = EntryEventImpl.deserialize(serializedBytes); } catch (Exception e) { } return deserializedObject; }
@Override public String toString() { return EntryEventImpl.deserialize(regionkey) + " {" + seqNum + "}"; } }
public Object getDeserializedWritableCopy(Region r, RegionEntry re) { return EntryEventImpl.deserialize(this.value); }
public HDFSEventRowLocationRegionEntry(RegionEntryContext context, byte[] key, PersistedEventImpl event) { super(context, EntryEventImpl.deserialize(key), event.getValue()); this.rawKey = key; this.event = event; }
public HDFSEventRowLocationRegionEntry(RegionEntryContext context, byte[] key, PersistedEventImpl event) { super(context, EntryEventImpl.deserialize(key), event.getValue()); this.rawKey = key; this.event = event; }
static Object decodeAddressToObject(long ohAddress) { byte[] bytes = decodeAddressToBytes(ohAddress, true, false); boolean isSerialized = (ohAddress & SERIALIZED_BIT) != 0; if (isSerialized) { return EntryEventImpl.deserialize(bytes); } else { return bytes; } }
public HDFSEventRowLocationRegionEntry(RegionEntryContext context, byte[] key, PersistedEventImpl event) { super(context, EntryEventImpl.deserialize(key), event.getValue()); this.rawKey = key; this.event = event; }
static Object readSerializedValue(byte[] valueBytes, Version version, ByteArrayDataInput in, boolean forceDeserialize) { if (forceDeserialize) { // deserialize checking for product version change return EntryEventImpl.deserialize(valueBytes, version, in); } else { // TODO: upgrades: is there a case where GemFire values are internal // ones that need to be upgraded transparently; probably messages // being persisted (gateway events?) return CachedDeserializableFactory.create(valueBytes); } }
public void fromData(DataInput in) throws IOException, ClassNotFoundException { this.value = DataSerializer.readByteArray(in); this.objValue = EntryEventImpl.deserialize(this.value); }
/** * @see CachedDeserializable#getDeserializedValue(Region, RegionEntry) */ @Override public Object getDeserializedValue(Region r, RegionEntry re) { return EntryEventImpl.deserialize(getCompressor().decompress(this.value)); }
/** * @see CachedDeserializable#getDeserializedValue(Region, RegionEntry) */ @Override public Object getDeserializedValue(Region r, RegionEntry re) { return EntryEventImpl.deserialize(getCompressor().decompress(this.value)); }
static Object readSerializedValue(byte[] valueBytes, Version version, ByteArrayDataInput in, boolean forceDeserialize) { if (forceDeserialize || CachedDeserializableFactory.preferObject()) { // deserialize checking for product version change return EntryEventImpl.deserialize(valueBytes, version, in); } else { // TODO: upgrades: is there a case where GemFire values are internal // ones that need to be upgraded transparently; probably messages // being persisted (gateway events?) return CachedDeserializableFactory.create(valueBytes); } }
@Override public Object getDeserializedValue(Region r, RegionEntry re) { if (isSerialized()) { return EntryEventImpl.deserialize(getRawBytes()); } else { return getRawBytes(); } }
@Override public Object getDeserializedValue(Region r, RegionEntry re) { if (isSerialized()) { // TODO OFFHEAP: debug deserializeChunk return EntryEventImpl.deserialize(getRawBytes()); //assert !isCompressed(); //return EntryEventImpl.deserializeChunk(this); } else { return getRawBytes(); } }
public static Object encodedAddressToObject(long addr, boolean decompress, boolean deserialize) { boolean isSerialized = (addr & SERIALIZED_BIT) != 0; byte[] bytes = encodedAddressToBytes(addr, decompress); if (isSerialized) { if (deserialize || CachedDeserializableFactory.preferObject()) { return EntryEventImpl.deserialize(bytes); } else { return CachedDeserializableFactory.create(bytes); } } else { return bytes; } }
private Object deserializeKey(byte[] keyBytes, final Version version, final ByteArrayDataInput in) { if (!getParent().isOffline() || !PdxWriterImpl.isPdx(keyBytes)) { return EntryEventImpl.deserialize(keyBytes, version, in); } else { return new RawByteKey(keyBytes); } }
private Object deserializeKey(byte[] keyBytes, final Version version, final ByteArrayDataInput in) { if (!getParent().isOffline() || !PdxWriterImpl.isPdx(keyBytes)) { return EntryEventImpl.deserialize(keyBytes, version, in); } else { return new RawByteKey(keyBytes); } }