|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--step.encoding.MetaRecord
A record that contains another record with interleaved meta-data.
MetaEvent
,
Serialized FormNested Class Summary | |
static class |
MetaRecord.Factory
|
Field Summary | |
StepArray |
data
|
static RecordDef |
DEFINITION
|
StepArray |
metaData
|
Fields inherited from interface step.StepRecord |
TYPE |
Constructor Summary | |
MetaRecord(List data,
List metaData)
Create a new meta record from data segments and meta segments. |
|
MetaRecord(StepArray data,
StepArray metaData)
Create a new meta record from data segments and meta segments. |
Method Summary | |
boolean |
equals(Object o)
Compare two MetaRecords for equality. |
FieldIterator |
fieldIterator()
Get an iterator for serial access to this record's fields. |
void |
free()
Free the memory used by this record. |
int |
hashCode()
Get a hash code for this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final RecordDef DEFINITION
public StepArray data
public StepArray metaData
Constructor Detail |
public MetaRecord(StepArray data, StepArray metaData)
The meta segments should consist of complete encoded records, generally
either a MetaEvent
or another MetaRecord.
There should be n+1
data segments for n
meta
segments.
public MetaRecord(List data, List metaData)
The meta segments should consist of complete encoded records, generally
either a MetaEvent
or another MetaRecord.
There should be n+1
data segments for n
meta
segments.
ClassCastException
- if the list elements are not
byte[]
objects.Method Detail |
public boolean equals(Object o)
equals
in interface StepObject
equals
in class Object
ClassCastException
- if the given object is not a MetaRecord.
NullPointerException
- if the given object is null
.public int hashCode()
StepObject
NOTE: All STEP objects must be hashable to support the identifier encoding strategy.
hashCode
in interface StepObject
hashCode
in class Object
public FieldIterator fieldIterator()
StepRecord
NOTE: The order in which fields are accessed by the iterator should be compatible with the factory associated with this record.
fieldIterator
in interface StepRecord
RecordFactory
public void free()
The underlying byte[]
objects are freed to the
ByteArray.allocator()
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |