org.apache.parquet.column.Encoding.name()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中org.apache.parquet.column.Encoding.name()方法的一些代码示例,展示了Encoding.name()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Encoding.name()方法的具体详情如下:
包路径:org.apache.parquet.column.Encoding
类名称:Encoding
方法名:name

Encoding.name介绍

暂无

代码示例

代码示例来源:origin: org.lasersonlab.apache.parquet/parquet-column

/**
 * 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");
}

代码示例来源:origin: org.lasersonlab.apache.parquet/parquet-column

/**
 * 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");
}

代码示例来源:origin: org.apache.parquet/parquet-column

/**
 * 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");
}

代码示例来源:origin: org.apache.parquet/parquet-column

/**
 * 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");
}

代码示例来源:origin: org.apache.parquet/parquet-column

/**
 * 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");
}

代码示例来源:origin: org.lasersonlab.apache.parquet/parquet-column

/**
 * 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");
}

代码示例来源:origin: org.lasersonlab.apache.parquet/parquet-hadoop

public Encoding getEncoding(org.apache.parquet.column.Encoding encoding) {
 return Encoding.valueOf(encoding.name());
}

代码示例来源:origin: org.apache.parquet/parquet-hadoop

public Encoding getEncoding(org.apache.parquet.column.Encoding encoding) {
 return Encoding.valueOf(encoding.name());
}

相关文章