gpt4 book ai didi

org.apache.druid.segment.data.ZeroIndexedInts类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 11:57:31 27 4
gpt4 key购买 nike

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

ZeroIndexedInts介绍

[英]An IndexedInts that always returns a row containing a single zero.
[中]总是返回一个包含单个零的行的IndexedInts。

代码示例

代码示例来源:origin: apache/incubator-druid

@Override
public IndexedInts getRow()
{
 return ZeroIndexedInts.instance();
}

代码示例来源:origin: apache/incubator-druid

@Override
public IndexedInts getRow()
{
 return ZeroIndexedInts.instance();
}

代码示例来源:origin: apache/incubator-druid

@Override
public IndexedInts getRow()
{
 return ZeroIndexedInts.instance();
}

代码示例来源:origin: apache/incubator-druid

@Override
public IndexedInts getRow()
{
 return ZeroIndexedInts.instance();
}

代码示例来源:origin: apache/incubator-druid

@Override
public IndexedInts getRow()
{
 final int valueIndex = findValueIndicesIndexForSubColumn();
 if (valueIndex < 0) {
  return ZeroIndexedInts.instance();
 } else {
  indexedInt.setValue(valueIndex);
  return indexedInt;
 }
}

代码示例来源:origin: apache/incubator-druid

/**
 * Value for absent column, i. e. {@link NilColumnValueSelector}, should be equivalent to [null] during index merging.
 *
 * During index merging, if one of the merged indexes has absent columns, {@link StringDimensionMergerV9} ensures
 * that null value is present, and it has index = 0 after sorting, because sorting puts null first. See {@link
 * StringDimensionMergerV9#hasNull} and the place where it is assigned.
 */
private static IndexedInts getRow(ColumnValueSelector s)
{
 if (s instanceof DimensionSelector) {
  return ((DimensionSelector) s).getRow();
 } else if (s instanceof NilColumnValueSelector) {
  return ZeroIndexedInts.instance();
 } else {
  throw new ISE(
    "ColumnValueSelector[%s], only DimensionSelector or NilColumnValueSelector is supported",
    s.getClass()
  );
 }
}

代码示例来源:origin: apache/incubator-druid

/**
 * Treats any non-single-valued row as a row containing a single null value, to ensure consistency with
 * other expression selectors. See also {@link ExpressionSelectors#supplierFromDimensionSelector} for similar
 * behavior.
 */
@Override
public IndexedInts getRow()
{
 final IndexedInts row = selector.getRow();
 if (row.size() == 1) {
  if (nullAdjustment == 0) {
   return row;
  } else {
   nullAdjustedRow.setValue(row.get(0) + nullAdjustment);
   return nullAdjustedRow;
  }
 } else {
  // Can't handle non-singly-valued rows in expressions.
  // Treat them as nulls until we think of something better to do.
  return ZeroIndexedInts.instance();
 }
}

代码示例来源:origin: org.apache.druid/druid-processing

@Override
public IndexedInts getRow()
{
 return ZeroIndexedInts.instance();
}

代码示例来源:origin: org.apache.druid/druid-processing

@Override
public IndexedInts getRow()
{
 return ZeroIndexedInts.instance();
}

代码示例来源:origin: org.apache.druid/druid-processing

@Override
public IndexedInts getRow()
{
 return ZeroIndexedInts.instance();
}

代码示例来源:origin: org.apache.druid/druid-processing

/**
 * Value for absent column, i. e. {@link NilColumnValueSelector}, should be equivalent to [null] during index merging.
 *
 * During index merging, if one of the merged indexes has absent columns, {@link StringDimensionMergerV9} ensures
 * that null value is present, and it has index = 0 after sorting, because sorting puts null first. See {@link
 * StringDimensionMergerV9#hasNull} and the place where it is assigned.
 */
private static IndexedInts getRow(ColumnValueSelector s)
{
 if (s instanceof DimensionSelector) {
  return ((DimensionSelector) s).getRow();
 } else if (s instanceof NilColumnValueSelector) {
  return ZeroIndexedInts.instance();
 } else {
  throw new ISE(
    "ColumnValueSelector[%s], only DimensionSelector or NilColumnValueSelector is supported",
    s.getClass()
  );
 }
}

代码示例来源:origin: org.apache.druid/druid-processing

/**
 * Treats any non-single-valued row as a row containing a single null value, to ensure consistency with
 * other expression selectors. See also {@link ExpressionSelectors#supplierFromDimensionSelector} for similar
 * behavior.
 */
@Override
public IndexedInts getRow()
{
 final IndexedInts row = selector.getRow();
 if (row.size() == 1) {
  if (nullAdjustment == 0) {
   return row;
  } else {
   nullAdjustedRow.setValue(row.get(0) + nullAdjustment);
   return nullAdjustedRow;
  }
 } else {
  // Can't handle non-singly-valued rows in expressions.
  // Treat them as nulls until we think of something better to do.
  return ZeroIndexedInts.instance();
 }
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com