parquet-column/src/main/java/org/apache/parquet/column/values/ValuesReader.java
@Deprecated
  public void initFromPage(int valueCount, ByteBuffer page, int offset) throws IOException {
    if (offset < 0) {
      throw new IllegalArgumentException("Illegal offset: " + offset);
    }
    actualOffset = offset;
    ByteBuffer pageWithOffset = page.duplicate();
    pageWithOffset.position(offset);
    initFromPage(valueCount, ByteBufferInputStream.wrap(pageWithOffset));
    actualOffset = -1;
  }
@Deprecated
  public void initFromPage(int valueCount, ByteBuffer page, int offset) throws IOException {
    if (offset < 0) {
      throw new IllegalArgumentException("Illegal offset: " + offset);
    }
    actualOffset = offset;
    ByteBuffer pageWithOffset = page.duplicate();
    pageWithOffset.position(offset);
    initFromPage(valueCount, ByteBufferInputStream.wrap(pageWithOffset));
    actualOffset = -1;
  }
Called to initialize the column reader from a part of a page.

The underlying implementation knows how much data to read, so a length
is not provided.

Each page may contain several sections:
<ul>
<li> repetition levels column
<li> definition levels column
<li> data column
</ul>

This function is called with 'offset' pointing to the beginning of one of these sections,
and should return the offset to the section following it.

@param valueCount count of values in this page
@param page the array to read from containing the page data (repetition levels, definition levels, data)
@param offset where to start reading from in the page

@throws IOException
@deprecated Will be removed in 2.0.0