Class StatisticsColumnData
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.stat.messages.StatisticsColumnData
-
- All Implemented Interfaces:
Serializable,Message
public class StatisticsColumnData extends Object implements Message
Statistics by column (or by set of columns, if they collected together)- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static shortTYPE_CODE-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Constructor Summary
Constructors Constructor Description StatisticsColumnData()Default constructor.StatisticsColumnData(StatisticsDecimalMessage min, StatisticsDecimalMessage max, long nulls, long distinct, long total, int size, byte[] rawData, long ver, long createdAt)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcreatedAt()shortdirectType()Gets message type.longdistinct()bytefieldsCount()Gets fields count.StatisticsDecimalMessagemax()StatisticsDecimalMessagemin()longnulls()voidonAckReceived()Method called when ack message received.byte[]rawData()booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.intsize()longtotal()longversion()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.
-
-
-
Field Detail
-
TYPE_CODE
public static final short TYPE_CODE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
StatisticsColumnData
public StatisticsColumnData()
Default constructor.
-
StatisticsColumnData
public StatisticsColumnData(StatisticsDecimalMessage min, StatisticsDecimalMessage max, long nulls, long distinct, long total, int size, byte[] rawData, long ver, long createdAt)
Constructor.- Parameters:
min- Min value in column.max- Max value in column.nulls- Number of null values in column.distinct- Total distinct values in column.total- Total values in column.size- Average size, for variable size types (in bytes).rawData- Raw data to make statistics aggregate.ver- Statistics version.createdAt- Created at time, milliseconds.
-
-
Method Detail
-
min
public StatisticsDecimalMessage min()
- Returns:
- Min value in column.
-
max
public StatisticsDecimalMessage max()
- Returns:
- Max value in column.
-
nulls
public long nulls()
- Returns:
- Number of null values in column.
-
distinct
public long distinct()
- Returns:
- Total distinct values in column.
-
total
public long total()
- Returns:
- Total values in column.
-
size
public int size()
- Returns:
- Average size, for variable size types (in bytes).
-
rawData
public byte[] rawData()
- Returns:
- Raw data.
-
version
public long version()
- Returns:
- Raw data.
-
createdAt
public long createdAt()
- Returns:
- Created at time, milliseconds.
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.
-
readFrom
public boolean readFrom(ByteBuffer buf, MessageReader reader)
Reads this message from provided byte buffer.
-
directType
public short directType()
Gets message type.- Specified by:
directTypein interfaceMessage- Returns:
- Message type.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Specified by:
fieldsCountin interfaceMessage- Returns:
- Fields count.
-
onAckReceived
public void onAckReceived()
Method called when ack message received.- Specified by:
onAckReceivedin interfaceMessage
-
-