public static class AbstractMRMWTestCase.GroundTruth extends Object
AbstractMRMWTestCase.WriterTask
stores the AbstractMRMWTestCase.Record
s that it writes here. The AbstractMRMWTestCase.ReaderTask
s
select and verify random ground truth AbstractMRMWTestCase.Record
s.Constructor and Description |
---|
AbstractMRMWTestCase.GroundTruth() |
Modifier and Type | Method and Description |
---|---|
void |
add(AbstractMRMWTestCase.Record record)
Records a new ground truth record.
|
long |
getBytesVerified() |
long |
getBytesWritten() |
ByteBuffer |
getRandomData(int reclen)
Returns random data that will fit in N bytes.
|
AbstractMRMWTestCase.Record |
getRandomGroundTruthRecord()
Return a randomly choosen ground truth record.
|
int |
getRecordCount()
The #of records written so far.
|
int |
getVerifiedCount() |
void |
verifiedRecord(AbstractMRMWTestCase.Record record)
Used by a
AbstractMRMWTestCase.ReaderTask to notify us that it has verified
a ground truth record. |
public int getRecordCount()
public long getBytesWritten()
public long getBytesVerified()
public int getVerifiedCount()
public void verifiedRecord(AbstractMRMWTestCase.Record record)
AbstractMRMWTestCase.ReaderTask
to notify us that it has verified
a ground truth record.public void add(AbstractMRMWTestCase.Record record)
record
- The record.public AbstractMRMWTestCase.Record getRandomGroundTruthRecord()
public ByteBuffer getRandomData(int reclen)
ByteBuffer
wrapping a new byte[]
of
random length and having random contents.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.