com.datastax.driver.core.Row.getVarint()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(85)

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

Row.getVarint介绍

[英]Returns the ith value of this row as a variable length integer.
[中]以可变长度整数的形式返回此行的第i个值。

代码示例

代码示例来源:origin: prestodb/presto

return CassandraCqlUtils.quoteStringLiteral(toAddrString(row.getInet(i)));
case VARINT:
  return row.getVarint(i).toString();
case BLOB:
case CUSTOM:

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

return row.getVarint(col);

代码示例来源:origin: prestodb/presto

return NullableValue.of(nativeType, utf8Slice(toAddrString(row.getInet(i))));
case VARINT:
  return NullableValue.of(nativeType, utf8Slice(row.getVarint(i).toString()));
case BLOB:
case CUSTOM:

代码示例来源:origin: com.datastax.cassandra/cassandra-driver-core

private void assertRow(Row row) {
  assertThat(row.getInt(0)).isEqualTo(n_int);
  assertThat(row.getLong(1)).isEqualTo(n_bigint);
  assertThat(row.getFloat(2)).isEqualTo(n_float);
  assertThat(row.getDouble(3)).isEqualTo(n_double);
  assertThat(row.getVarint(4)).isEqualTo(n_varint);
  assertThat(row.getDecimal(5)).isEqualTo(n_decimal);
  // with getObject
  assertThat(row.getObject(0)).isEqualTo(n_int);
  assertThat(row.getObject(1)).isEqualTo(n_bigint);
  assertThat(row.getObject(2)).isEqualTo(n_float);
  assertThat(row.getObject(3)).isEqualTo(n_double);
  assertThat(row.getObject(4)).isEqualTo(n_varint);
  assertThat(row.getObject(5)).isEqualTo(n_decimal);
  // with get + type
  assertThat(row.get(0, Integer.class)).isEqualTo(n_int);
  assertThat(row.get(1, Long.class)).isEqualTo(n_bigint);
  assertThat(row.get(2, Float.class)).isEqualTo(n_float);
  assertThat(row.get(3, Double.class)).isEqualTo(n_double);
  assertThat(row.get(4, BigInteger.class)).isEqualTo(n_varint);
  assertThat(row.get(5, BigDecimal.class)).isEqualTo(n_decimal);
 }
}

代码示例来源:origin: Impetus/Kundera

retVal = row.getVarint(columnName);
setFieldValue(entity, member, retVal);
break;

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-server

@Override
public BigInteger getVarint(int i)
{
  return row.getVarint(i);
}

代码示例来源:origin: org.apache.cassandra/cassandra-all

@Override
public BigInteger getVarint(int i)
{
  return row.getVarint(i);
}

代码示例来源:origin: jsevellec/cassandra-unit

@Override
public BigInteger getVarint(int i)
{
  return row.getVarint(i);
}

代码示例来源:origin: jsevellec/cassandra-unit

@Override
public BigInteger getVarint(String name)
{
  return row.getVarint(name);
}

代码示例来源:origin: com.strapdata.cassandra/cassandra-all

@Override
public BigInteger getVarint(int i)
{
  return row.getVarint(i);
}

代码示例来源:origin: com.facebook.presto.cassandra/cassandra-server

@Override
public BigInteger getVarint(String name)
{
  return row.getVarint(name);
}

代码示例来源:origin: org.apache.cassandra/cassandra-all

@Override
public BigInteger getVarint(String name)
{
  return row.getVarint(name);
}

代码示例来源:origin: net.oneandone.troilus/troilus-core-java7

@Override
public BigInteger getVarint(String name) {
  return row.getVarint(name);
}

代码示例来源:origin: com.datastax.cassandra/cassandra-driver-core

assertThat(row.getFloat(2)).isEqualTo(n_float);
assertThat(row.getDouble(3)).isEqualTo(n_double);
assertThat(row.getVarint(4)).isEqualTo(n_varint);
assertThat(row.getDecimal(5)).isEqualTo(n_decimal);

代码示例来源:origin: net.oneandone/troilus-core-java7

@Override
public BigInteger getVarint(String name) {
  return row.getVarint(name);
}

代码示例来源:origin: com.strapdata.cassandra/cassandra-all

@Override
public BigInteger getVarint(String name)
{
  return row.getVarint(name);
}

代码示例来源:origin: com.tuplejump/calliope-core

@Override
public BigInteger getVarint(int i) {
  return row.getVarint(i);
}

代码示例来源:origin: com.tuplejump/calliope-core

@Override
public BigInteger getVarint(String name) {
  return row.getVarint(name);
}

代码示例来源:origin: adejanovski/cassandra-jdbc-wrapper

public BigInteger getBigInteger(int index) throws SQLException
{
  checkIndex(index);
  return currentRow.getVarint(index - 1);
}

代码示例来源:origin: adejanovski/cassandra-jdbc-wrapper

public BigInteger getBigInteger(String name) throws SQLException
{
  checkName(name);
  return currentRow.getVarint(name);
}

相关文章