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

x33g5p2x  于2022-01-16 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(137)

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

Binary.copy介绍

暂无

代码示例

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

/**
 * @param min_value a min binary
 * @param max_value a max binary
 * @deprecated use {@link #updateStats(Binary)}, will be removed in 2.0.0
 */
@Deprecated
public void initializeStats(Binary min_value, Binary max_value) {
  min = min_value.copy();
  max = max_value.copy();
  this.markAsNotEmpty();
}

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

/**
 * @param min_value a min binary
 * @param max_value a max binary
 * @deprecated use {@link #updateStats(Binary)}, will be removed in 2.0.0
 */
@Deprecated
public void initializeStats(Binary min_value, Binary max_value) {
  min = min_value.copy();
  max = max_value.copy();
  this.markAsNotEmpty();
}

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

/**
 * @param min_value a min binary
 * @param max_value a max binary
 * @deprecated use {@link #updateStats(Binary)}, will be removed in 2.0.0
 */
@Deprecated
public void updateStats(Binary min_value, Binary max_value) {
 if (comparator().compare(min, min_value) > 0) { min = min_value.copy(); }
 if (comparator().compare(max, max_value) < 0) { max = max_value.copy(); }
}

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

/**
 * @param min_value a min binary
 * @param max_value a max binary
 * @deprecated use {@link #updateStats(Binary)}, will be removed in 2.0.0
 */
@Deprecated
public void updateStats(Binary min_value, Binary max_value) {
 if (comparator().compare(min, min_value) > 0) { min = min_value.copy(); }
 if (comparator().compare(max, max_value) < 0) { max = max_value.copy(); }
}

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

@Override
public void writeBytes(Binary value) {
 int id = binaryDictionaryContent.getInt(value);
 if (id == -1) {
  id = binaryDictionaryContent.size();
  binaryDictionaryContent.put(value.copy(), id);
  dictionaryByteSize += length;
 }
 encodedValues.add(id);
}

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

@Override
public void writeBytes(Binary value) {
 int id = binaryDictionaryContent.getInt(value);
 if (id == -1) {
  id = binaryDictionaryContent.size();
  binaryDictionaryContent.put(value.copy(), id);
  dictionaryByteSize += length;
 }
 encodedValues.add(id);
}

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

@Override
public void writeBytes(Binary v) {
 int id = binaryDictionaryContent.getInt(v);
 if (id == -1) {
  id = binaryDictionaryContent.size();
  binaryDictionaryContent.put(v.copy(), id);
  // length as int (4 bytes) + actual bytes
  dictionaryByteSize += 4 + v.length();
 }
 encodedValues.add(id);
}

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

@Override
public void writeBytes(Binary v) {
 int id = binaryDictionaryContent.getInt(v);
 if (id == -1) {
  id = binaryDictionaryContent.size();
  binaryDictionaryContent.put(v.copy(), id);
  // length as int (4 bytes) + actual bytes
  dictionaryByteSize += 4 + v.length();
 }
 encodedValues.add(id);
}

相关文章