public long pageCount() throws IOException, InterruptedException {
    return (long)
        ceil( UserLocalObjects.getHdfsApi(context).getFileStatus(filePath).getLen() / ((double)PAGE_SIZE) );
  }
Get page count
@return page count
@throws IOException
@throws InterruptedException
contrib/views/pig/src/main/java/org/apache/ambari/view/pig/utils/FilePaginator.java