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

x33g5p2x  于2022-01-18 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(170)

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

Dictionary.decodeToInt介绍

暂无

代码示例

代码示例来源:origin: apache/hive

@Override
public double readDouble(int id) {
 return dict.decodeToInt(id);
}

代码示例来源:origin: apache/hive

@Override
public long readInteger(int id) {
 return dict.decodeToInt(id);
}

代码示例来源:origin: apache/hive

@Override
public long readLong(int id) {
 return dict.decodeToInt(id);
}

代码示例来源:origin: apache/hive

@Override
public float readFloat(int id) {
 return dict.decodeToInt(id);
}

代码示例来源:origin: apache/hive

@Override
public long readSmallInt(int id) {
 return validatedLong(dict.decodeToInt(id), serdeConstants.SMALLINT_TYPE_NAME);
}

代码示例来源:origin: apache/hive

@Override
 public byte[] readDecimal(int id) {
  return super.validatedDecimal(dict.decodeToInt(id));
 }
}

代码示例来源:origin: apache/hive

@Override
public long readTinyInt(int id) {
 return validatedLong(dict.decodeToInt(id), serdeConstants.TINYINT_TYPE_NAME);
}

代码示例来源:origin: apache/hive

@Override
public long readInteger(int id) {
 return super.validatedLong(dict.decodeToInt(id), serdeConstants.INT_TYPE_NAME, true);
}

代码示例来源:origin: apache/hive

@Override
public byte[] readString(int id) {
 return convertToBytes(dict.decodeToInt(id));
}

代码示例来源:origin: apache/hive

@Override
public long readTinyInt(int id) {
 return validatedLong(dict.decodeToInt(id), serdeConstants.TINYINT_TYPE_NAME, true);
}

代码示例来源:origin: apache/hive

@Override
public long readSmallInt(int id) {
 return validatedLong(dict.decodeToInt(id), serdeConstants.SMALLINT_TYPE_NAME, true);
}

代码示例来源:origin: apache/hive

@Override
 public byte[] readDecimal(int id) {
  long validatedIntValue = super.validatedLong(dict.decodeToInt(id),
                         serdeConstants.INT_TYPE_NAME, true);
  if (super.isValid) {
   return super.validatedDecimal(validatedIntValue);
  } else {
   return null;
  }
 }
}

代码示例来源:origin: apache/hive

@Override
public byte[] readChar(int id) {
 String value = enforceMaxLength(
   convertToString(dict.decodeToInt(id)));
 return convertToBytes(value);
}

代码示例来源:origin: apache/hive

@Override
public byte[] readVarchar(int id) {
 String value = enforceMaxLength(
   convertToString(dict.decodeToInt(id)));
 return convertToBytes(value);
}

代码示例来源:origin: org.apache.spark/spark-sql_2.11

@Override
public int decodeToInt(int id) {
 return dictionary.decodeToInt(id);
}

代码示例来源:origin: org.apache.spark/spark-sql

@Override
public int decodeToInt(int id) {
 return dictionary.decodeToInt(id);
}

代码示例来源:origin: org.apache.spark/spark-sql_2.10

@Override
public int getInt(int rowId) {
 if (dictionary == null) {
  return intData[rowId];
 } else {
  return dictionary.decodeToInt(dictionaryIds.getDictId(rowId));
 }
}

代码示例来源:origin: org.apache.spark/spark-sql_2.10

@Override
public byte getByte(int rowId) {
 if (dictionary == null) {
  return Platform.getByte(null, data + rowId);
 } else {
  return (byte) dictionary.decodeToInt(dictionaryIds.getDictId(rowId));
 }
}

代码示例来源:origin: org.apache.spark/spark-sql_2.10

@Override
public short getShort(int rowId) {
 if (dictionary == null) {
  return Platform.getShort(null, data + 2 * rowId);
 } else {
  return (short) dictionary.decodeToInt(dictionaryIds.getDictId(rowId));
 }
}

代码示例来源:origin: org.apache.spark/spark-sql_2.10

@Override
public int getInt(int rowId) {
 if (dictionary == null) {
  return Platform.getInt(null, data + 4 * rowId);
 } else {
  return dictionary.decodeToInt(dictionaryIds.getDictId(rowId));
 }
}

相关文章