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

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

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

Dictionary.decodeToLong介绍

暂无

代码示例

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

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

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

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

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

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

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

@Override
public float readFloat(int id) {
 return (float) super.validatedLong(dict.decodeToLong(id), serdeConstants.BIGINT_TYPE_NAME,
   true);
}

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

@Override
public float readFloat(int id) {
 return (float) super.validatedLong(dict.decodeToLong(id), serdeConstants.BIGINT_TYPE_NAME,
                  true);
}

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

@Override
public double readDouble(int id) {
 return (double) super.validatedLong(dict.decodeToLong(id), serdeConstants.BIGINT_TYPE_NAME,
   true);
}

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

@Override
public double readDouble(int id) {
 return (double) super.validatedLong(dict.decodeToLong(id), serdeConstants.BIGINT_TYPE_NAME,
   true);
}

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

@Override
public long readLong(int id) {
 return super.validatedLong(dict.decodeToLong(id), serdeConstants.BIGINT_TYPE_NAME, true);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@Override
public long readLong(int id) {
 return super.validatedLong(dict.decodeToLong(id), serdeConstants.BIGINT_TYPE_NAME, true);
}

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

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

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

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

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

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

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

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

相关文章