use of org.apache.phoenix.expression.aggregator.Aggregator in project phoenix by apache.
the class SpillManager method toCacheEntry.
/**
* Helper function to deserialize a byte array into a CacheEntry
* @param <K>
* @param bytes
* @throws IOException
*/
@SuppressWarnings("unchecked")
public <K extends ImmutableBytesWritable> CacheEntry<K> toCacheEntry(byte[] bytes) throws IOException {
ImmutableBytesPtr key = SpillManager.getKey(bytes);
Aggregator[] aggs = getAggregators(bytes);
return new CacheEntry<K>((K) key, aggs);
}
Aggregations