static long getOffset(ColumnChunk columnChunk) { ColumnMetaData md = columnChunk.getMeta_data(); long offset = md.getData_page_offset(); if (md.isSetDictionary_page_offset() && offset > md.getDictionary_page_offset()) { offset = md.getDictionary_page_offset(); } return offset; }
public Object getFieldValue(_Fields field) { switch (field) { case TYPE: return getType(); case ENCODINGS: return getEncodings(); case PATH_IN_SCHEMA: return getPath_in_schema(); case CODEC: return getCodec(); case NUM_VALUES: return new Long(getNum_values()); case TOTAL_UNCOMPRESSED_SIZE: return new Long(getTotal_uncompressed_size()); case TOTAL_COMPRESSED_SIZE: return new Long(getTotal_compressed_size()); case KEY_VALUE_METADATA: return getKey_value_metadata(); case DATA_PAGE_OFFSET: return new Long(getData_page_offset()); case INDEX_PAGE_OFFSET: return new Long(getIndex_page_offset()); case DICTIONARY_PAGE_OFFSET: return new Long(getDictionary_page_offset()); case STATISTICS: return getStatistics(); } throw new IllegalStateException(); }
return new Long(getDictionary_page_offset());