parquet.io.api.Binary.toStringUsingUTF8()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(130)

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

Binary.toStringUsingUTF8介绍

暂无

代码示例

代码示例来源:origin: com.facebook.presto.hive/hive-apache

@Override
public String getString() {
 return binary.toStringUsingUTF8();
}

代码示例来源:origin: com.facebook.presto.hive/hive-apache

@Override
 public boolean apply(ColumnReader input) {
  return target.equals(input.getBinary().toStringUsingUTF8());
 }
};

代码示例来源:origin: com.twitter/parquet-pig

@Override
public void addBinary(Binary value) {
 parent.add(Double.parseDouble(value.toStringUsingUTF8()));
}

代码示例来源:origin: com.twitter/parquet-pig

@Override
public void addBinary(Binary value) {
 parent.add(Integer.parseInt(value.toStringUsingUTF8()));
}

代码示例来源:origin: com.facebook.presto.hive/hive-apache

@Override
 public boolean apply(ColumnReader input) {
  return targetAsString.equals(input.getBinary().toStringUsingUTF8());
 }
};

代码示例来源:origin: com.twitter/parquet-tools

@Override
 public void addBinary(Binary value) {
  record.add(name, value.toStringUsingUTF8());
 }
}

代码示例来源:origin: com.twitter/parquet-pig

@Override
public void addBinary(Binary value) {
 parent.add(Long.parseLong(value.toStringUsingUTF8()));
}

代码示例来源:origin: com.twitter/parquet-pig

@Override
public void addBinary(Binary value) {
 parent.add(Boolean.parseBoolean(value.toStringUsingUTF8()));
}

代码示例来源:origin: com.facebook.presto.hive/hive-apache

@Override
public String toString() {
 if (this.hasNonNullValue())
  return String.format("min: %s, max: %s, num_nulls: %d", min.toStringUsingUTF8(), max.toStringUsingUTF8(), this.getNumNulls());
 else if (!this.isEmpty())
  return String.format("num_nulls: %d, min/max not defined", this.getNumNulls());
 else
  return "no stats for this column";
}

代码示例来源:origin: com.facebook.presto.hive/hive-apache

@Override
 public boolean apply(ColumnReader input) {
   return fn.functionToApply(input.getBinary().toStringUsingUTF8());
 }
};

代码示例来源:origin: org.apache.tajo/tajo-storage

@Override
 final public void addBinary(Binary value) {
  parent.add(DatumFactory.createChar(value.toStringUsingUTF8()));
 }
}

代码示例来源:origin: com.twitter/parquet-cascading

@Override
public void addBinary(Binary value) {
 parent.getCurrentTuple().setString(index, value.toStringUsingUTF8());
}

代码示例来源:origin: asakusafw/asakusafw

@Override
public void addBinary(Binary value) {
  drive(parse(value.toStringUsingUTF8()));
}

代码示例来源:origin: asakusafw/asakusafw

@Override
public void addBinary(Binary value) {
  drive(parse(value.toStringUsingUTF8()));
}

代码示例来源:origin: asakusafw/asakusafw

@Override
public void addBinary(Binary value) {
  drive(parse(value.toStringUsingUTF8()));
}

代码示例来源:origin: org.apache.tajo/tajo-storage

@Override
 final public void addBinary(Binary value) {
  parent.add(DatumFactory.createText(value.toStringUsingUTF8()));
 }
}

代码示例来源:origin: com.twitter/parquet-pig

@Override
public void setDictionary(Dictionary dictionary) {
 dict = new String[dictionary.getMaxId() + 1];
 for (int i = 0; i <= dictionary.getMaxId(); i++) {
  dict[i] = dictionary.decodeToBinary(i).toStringUsingUTF8();
 }
}

代码示例来源:origin: asakusafw/asakusafw

@Override
public void setDictionary(Dictionary dictionary) {
  int[] buf = prepareDictionaryBuffer(dictionary);
  for (int id = 0, max = dictionary.getMaxId(); id <= max; id++) {
    buf[id] = parse(dictionary.decodeToBinary(id).toStringUsingUTF8());
  }
}

代码示例来源:origin: asakusafw/asakusafw

@Override
public void setDictionary(Dictionary dictionary) {
  long[] buf = prepareDictionaryBuffer(dictionary);
  for (int id = 0, max = dictionary.getMaxId(); id <= max; id++) {
    buf[id] = parse(dictionary.decodeToBinary(id).toStringUsingUTF8());
  }
}

代码示例来源:origin: asakusafw/asakusafw

@Override
public void setDictionary(Dictionary dictionary) {
  T[] buf = prepareDictionaryBuffer(dictionary);
  for (int id = 0, max = dictionary.getMaxId(); id <= max; id++) {
    buf[id] = parse(dictionary.decodeToBinary(id).toStringUsingUTF8());
  }
}

相关文章