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
ReadableBinary
readBinary
in interface ReadableBinary
in
- source to read from.IOException
- an error reading inputpublic byte[] binaryHeader()
ReadableBinary
binaryHeader
in interface ReadableBinary
binaryHeader
in interface WriteableBinary
public void writeBinary(DataOutput out) throws IOException
WriteableBinary
writeBinary
in interface WriteableBinary
out
- sink to write toIOException
- an error writing to out