public class Counter<T> extends Object implements Externalizable
| Modifier and Type | Field and Description |
|---|---|
protected ListNode2<StreamSummary.Bucket> |
bucketNode |
protected long |
count |
protected long |
error |
protected T |
item |
| Constructor and Description |
|---|
Counter()
For de-serialization
|
Counter(ListNode2<StreamSummary.Bucket> bucket,
T item) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount() |
long |
getError() |
T |
getItem() |
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
protected ListNode2<StreamSummary.Bucket> bucketNode
protected T item
protected long count
protected long error
public Counter()
public Counter(ListNode2<StreamSummary.Bucket> bucket, T item)
public T getItem()
public long getCount()
public long getError()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2014. All Rights Reserved.