@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;
 }