public class TimeperiodTweetCountWordCount extends Object implements ReadWriteableBinary
| Modifier and Type | Field and Description |
|---|---|
long |
timeperiod
The timeperiod of these counts
|
long |
tweetcount
The total number of tweets in this time period
|
long |
wordcount
The word counts (of an implicitly defined individual word) in this time period
|
| Constructor and Description |
|---|
TimeperiodTweetCountWordCount()
empty words and 0 tweets
|
TimeperiodTweetCountWordCount(long timeperiod,
long wordcount,
long tweetcount) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
binaryHeader()
Header for binary input.
|
boolean |
equals(Object other) |
void |
readBinary(DataInput in)
Read internal state from in.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
public long timeperiod
public long wordcount
public long tweetcount
public TimeperiodTweetCountWordCount()
public TimeperiodTweetCountWordCount(long timeperiod, long wordcount, long tweetcount)
timeperiod - wordcount - tweetcount - public void readBinary(DataInput in) throws IOException
ReadableBinaryreadBinary in interface ReadableBinaryin - source to read from.IOException - an error reading inputpublic byte[] binaryHeader()
ReadableBinarybinaryHeader in interface ReadableBinarybinaryHeader in interface WriteableBinarypublic void writeBinary(DataOutput out) throws IOException
WriteableBinarywriteBinary in interface WriteableBinaryout - sink to write toIOException - an error writing to out