public class EqStruct extends Object implements objects.ConfigurableObject, com.gemstone.gemfire.DataSerializable, TimestampedObject, UpdatableObject
| Constructor and Description |
|---|
EqStruct() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromData(DataInput in) |
int |
getIndex()
Returns the index encoded in the give
byte array. |
long |
getTimestamp()
Returns the object creation timestamp encoded in the object.
|
void |
init(int index)
Returns an object with a flat structure (with
many fields) based on UseCase12 Benchmark POC
with the given index encoded within.
|
void |
resetTimestamp()
Resets the timestamp encoded in the object to the current time.
|
void |
toData(DataOutput out) |
void |
update()
Updates one or more object fields.
|
void |
validate(int index)
Validates that the given
index is encoded in the
given byte array. |
public void init(int index)
init in interface objects.ConfigurableObjectpublic int getIndex()
byte array.getIndex in interface objects.ConfigurableObjectObjectAccessException - The index cannot be decoded from bytespublic void validate(int index)
index is encoded in the
given byte array.validate in interface objects.ConfigurableObjectObjectValidationException - If index is not encoded in bytespublic void update()
UpdatableObjectupdate in interface UpdatableObjectpublic void toData(DataOutput out) throws IOException
toData in interface com.gemstone.gemfire.DataSerializableIOExceptionpublic void fromData(DataInput in) throws IOException, ClassNotFoundException
fromData in interface com.gemstone.gemfire.DataSerializableIOExceptionClassNotFoundExceptionpublic long getTimestamp()
TimestampedObjectgetTimestamp in interface TimestampedObjectpublic void resetTimestamp()
TimestampedObjectresetTimestamp in interface TimestampedObjectCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.