本文整理了Java中org.apache.parquet.column.Dictionary.decodeToLong()
方法的一些代码示例,展示了Dictionary.decodeToLong()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dictionary.decodeToLong()
方法的具体详情如下:
包路径:org.apache.parquet.column.Dictionary
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!