public static class BlobsWriteProc.Result extends Object implements Externalizable
IVs and provides
efficient serialization for communication of those data to the client.| Modifier and Type | Field and Description |
|---|---|
int[] |
counters
The counters assigned to each
Value in the request. |
int |
maxBucketSize
The size of the largest hash collision bucket examined across all the
Values in the request. |
long |
totalBucketSize
The total size of the hash collision buckets examined across all
Values in the request. |
| Constructor and Description |
|---|
BlobsWriteProc.Result()
De-serialization constructor.
|
BlobsWriteProc.Result(long totalBucketSize,
int maxBucketSize,
int[] counters) |
| Modifier and Type | Method and Description |
|---|---|
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
public long totalBucketSize
Values in the request. Each time a Value is resolved
to a hash collision bucket, the size of that bucket is incremented
against this field. Thus it will double count a bucket if the same
bucket is visited more than once for the request.public int maxBucketSize
Values in the request.public int[] counters
Value in the request. The
indices of this array are correlated with the indices of the array
provided to the request.
Note: The actual counters values are SHORTs, not INTs. However,
BlobsIndexHelper.NOT_FOUND is an INT value used to indicate
that the desired BlobIV was not discovered in the index. That
means that we need to interchange and represent the counters as an
int[].
public BlobsWriteProc.Result()
public BlobsWriteProc.Result(long totalBucketSize,
int maxBucketSize,
int[] counters)
totalBucketSize - The total bucket size across all buckets examined.maxBucketSize - The size of the largest collision bucket examined.ivs - The assigned/resolved collision counters.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.