public DictionaryPageHeader deepCopy() { return new DictionaryPageHeader(this); }
public DictionaryPageHeader deepCopy() { return new DictionaryPageHeader(this); }
public void writeDictionaryPageHeader( int uncompressedSize, int compressedSize, int valueCount, parquet.column.Encoding valuesEncoding, OutputStream to) throws IOException { PageHeader pageHeader = new PageHeader(PageType.DICTIONARY_PAGE, uncompressedSize, compressedSize); pageHeader.setDictionary_page_header(new DictionaryPageHeader(valueCount, getEncoding(valuesEncoding))); writePageHeader(pageHeader, to); }
/** * Performs a deep copy on <i>other</i>. */ public PageHeader(PageHeader other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); if (other.isSetType()) { this.type = other.type; } this.uncompressed_page_size = other.uncompressed_page_size; this.compressed_page_size = other.compressed_page_size; this.crc = other.crc; if (other.isSetData_page_header()) { this.data_page_header = new DataPageHeader(other.data_page_header); } if (other.isSetIndex_page_header()) { this.index_page_header = new IndexPageHeader(other.index_page_header); } if (other.isSetDictionary_page_header()) { this.dictionary_page_header = new DictionaryPageHeader(other.dictionary_page_header); } if (other.isSetData_page_header_v2()) { this.data_page_header_v2 = new DataPageHeaderV2(other.data_page_header_v2); } }
/** * Performs a deep copy on <i>other</i>. */ public PageHeader(PageHeader other) { __isset_bit_vector.clear(); __isset_bit_vector.or(other.__isset_bit_vector); if (other.isSetType()) { this.type = other.type; } this.uncompressed_page_size = other.uncompressed_page_size; this.compressed_page_size = other.compressed_page_size; this.crc = other.crc; if (other.isSetData_page_header()) { this.data_page_header = new DataPageHeader(other.data_page_header); } if (other.isSetIndex_page_header()) { this.index_page_header = new IndexPageHeader(other.index_page_header); } if (other.isSetDictionary_page_header()) { this.dictionary_page_header = new DictionaryPageHeader(other.dictionary_page_header); } if (other.isSetData_page_header_v2()) { this.data_page_header_v2 = new DataPageHeaderV2(other.data_page_header_v2); } }
case 7: // DICTIONARY_PAGE_HEADER if (field.type == TType.STRUCT) { this.dictionary_page_header = new DictionaryPageHeader(); this.dictionary_page_header.read(iprot); } else {
case 7: // DICTIONARY_PAGE_HEADER if (field.type == TType.STRUCT) { this.dictionary_page_header = new DictionaryPageHeader(); this.dictionary_page_header.read(iprot); } else {