protected static class TestRandomBlockOps.StressTest extends Object
| Constructor and Description |
|---|
TestRandomBlockOps.StressTest(BigdataFileSystem repo,
int limit,
com.bigdata.bfs.TestRandomBlockOps.Op gen) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
copy(byte[] b,
int off,
int len)
Return a copy of those the bytes between off (inclusive) and
off+len (exclusive).
|
protected long |
getFirstBlock(String id,
int version)
Return the first non-deleted block identifier for the given file
version.
|
protected long |
getRandomBlock(String id,
int version)
Return a randomly selected block identifier from among the
non-deleted blocks for the given file version.
|
public TestRandomBlockOps.StressTest(BigdataFileSystem repo, int limit, com.bigdata.bfs.TestRandomBlockOps.Op gen)
protected byte[] copy(byte[] b,
int off,
int len)
b - The bytes.off - The offset of the first byte to copy.len - The #of bytes to copy
.protected long getFirstBlock(String id, int version)
id - The file identifier.version - The version identifier.-1L
iff there are no blocks for that file version.protected long getRandomBlock(String id, int version)
id - The file identifier.version - The version identifier.-1L iff there are no
non-deleted blocks.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.