@Override
 public long getMemorySizeInBytes() {
   if (size == -1) {
     size = RamUsageEstimator.NUM_BYTES_ARRAY_HEADER + values.sizeInBytes();
   }
   return size;
 }
 @Override
 public long getMemorySizeInBytes() {
   if (size == -1) {
     size =
         RamUsageEstimator.NUM_BYTES_INT /*size*/
             + RamUsageEstimator.NUM_BYTES_INT /*numDocs*/
             + values.sizeInBytes()
             + ordinals.getMemorySizeInBytes();
   }
   return size;
 }
 @Override
 public double getValue(int docId) {
   return values.get(docId);
 }
 @Override
 public long getValue(int docId) {
   return (long) values.get(docId);
 }
 @Override
 public double getValueByOrd(long ord) {
   return values.get(ord);
 }
 @Override
 public final long getValueByOrd(long ord) {
   return (long) values.get(ord);
 }