@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null) {
      return false;
    }
    if (o instanceof Sample) {
      Sample s = (Sample) o;
      return ((sampleNum == s.sampleNum)
          && (sampleFraction == s.sampleFraction) && sampleDimension
          .equals(s.sampleDimension));
    }
    return (false);
  }
Given an arbitrary object, determine if it falls within this sample.
ql/src/java/org/apache/hadoop/hive/ql/metadata/Sample.java