public boolean inSample(Object o) {
    return (((sampleDimension.hashCode(o) & Integer.MAX_VALUE) % sampleFraction) == moduloNum);
  }
Given an arbitrary object, determine if it falls within this sample.
ql/src/java/org/apache/hadoop/hive/ql/metadata/Sample.java