Java Code Examples for org.apache.hadoop.hive.ql.util.JavaDataModel#PRIMITIVES2

The following examples show how to use org.apache.hadoop.hive.ql.util.JavaDataModel#PRIMITIVES2 . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KPAPredictUDAF.java    From incubator-hivemall with Apache License 2.0 4 votes vote down vote up
@Override
public int estimate() {
    return JavaDataModel.PRIMITIVES2;
}
 
Example 2
Source File: MinByUDAF.java    From incubator-hivemall with Apache License 2.0 4 votes vote down vote up
@Override
public int estimate() {
    return JavaDataModel.PRIMITIVES2 * 2; // rough estimate
}
 
Example 3
Source File: MaxByUDAF.java    From incubator-hivemall with Apache License 2.0 4 votes vote down vote up
@Override
public int estimate() {
    return JavaDataModel.PRIMITIVES2 * 2; // rough estimate
}
 
Example 4
Source File: MajorityVoteUDAF.java    From incubator-hivemall with Apache License 2.0 4 votes vote down vote up
@Override
public int estimate() {
    int size = partial.size();
    return JavaDataModel.PRIMITIVES2 * size * 2; // rough estimate
}