/** * initializes a dictionary from a page * @param descriptor the column descriptor for the dictionary-encoded column * @param dictionaryPage a dictionary page * @return the corresponding dictionary * @throws IOException if there is an exception while reading the dictionary page * @throws UnsupportedOperationException if the encoding is not dictionary based */ public Dictionary initDictionary(ColumnDescriptor descriptor, DictionaryPage dictionaryPage) throws IOException { throw new UnsupportedOperationException(this.name() + " does not support dictionary"); }
/** * To read decoded values that don't require a dictionary * * @param descriptor the column to read * @param valuesType the type of values * @return the proper values reader for the given column * @throws UnsupportedOperationException if the encoding is dictionary based */ public ValuesReader getValuesReader(ColumnDescriptor descriptor, ValuesType valuesType) { throw new UnsupportedOperationException("Error decoding " + descriptor + ". " + this.name() + " is dictionary based"); }
/** * initializes a dictionary from a page * @param descriptor the column descriptor for the dictionary-encoded column * @param dictionaryPage a dictionary page * @return the corresponding dictionary * @throws IOException if there is an exception while reading the dictionary page * @throws UnsupportedOperationException if the encoding is not dictionary based */ public Dictionary initDictionary(ColumnDescriptor descriptor, DictionaryPage dictionaryPage) throws IOException { throw new UnsupportedOperationException(this.name() + " does not support dictionary"); }
/** * To read decoded values that don't require a dictionary * * @param descriptor the column to read * @param valuesType the type of values * @return the proper values reader for the given column * @throws UnsupportedOperationException if the encoding is dictionary based */ public ValuesReader getValuesReader(ColumnDescriptor descriptor, ValuesType valuesType) { throw new UnsupportedOperationException("Error decoding " + descriptor + ". " + this.name() + " is dictionary based"); }
/** * To read decoded values that require a dictionary * * @param descriptor the column to read * @param valuesType the type of values * @param dictionary the dictionary * @return the proper values reader for the given column * @throws UnsupportedOperationException if the encoding is not dictionary based */ public ValuesReader getDictionaryBasedValuesReader(ColumnDescriptor descriptor, ValuesType valuesType, Dictionary dictionary) { throw new UnsupportedOperationException(this.name() + " is not dictionary based"); }
/** * To read decoded values that require a dictionary * * @param descriptor the column to read * @param valuesType the type of values * @param dictionary the dictionary * @return the proper values reader for the given column * @throws UnsupportedOperationException if the encoding is not dictionary based */ public ValuesReader getDictionaryBasedValuesReader(ColumnDescriptor descriptor, ValuesType valuesType, Dictionary dictionary) { throw new UnsupportedOperationException(this.name() + " is not dictionary based"); }
public Encoding getEncoding(org.apache.parquet.column.Encoding encoding) { return Encoding.valueOf(encoding.name()); }
public Encoding getEncoding(org.apache.parquet.column.Encoding encoding) { return Encoding.valueOf(encoding.name()); }