本文整理了Java中com.datastax.driver.core.Row.getTime
方法的一些代码示例,展示了Row.getTime
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Row.getTime
方法的具体详情如下:
包路径:com.datastax.driver.core.Row
类名称:Row
方法名:getTime
暂无
代码示例来源:origin: kairosdb/kairosdb
@Override
public ServiceKeyValue getValue(String service, String serviceKey, String key) throws DatastoreException
{
BoundStatement statement = new BoundStatement(m_metaCluster.psServiceIndexGet);
statement.setString(0, service);
statement.setString(1, serviceKey);
statement.setString(2, key);
statement.setConsistencyLevel(m_metaCluster.getReadConsistencyLevel());
ResultSet resultSet = m_metaCluster.execute(statement);
Row row = resultSet.one();
if (row != null)
return new ServiceKeyValue(row.getString(0), new Date(row.getTime(1)));
return null;
}
代码示例来源:origin: apache/nifi
return row.getTime(i);
代码示例来源:origin: org.apache.nifi/nifi-cassandra-processors
return row.getTime(i);
代码示例来源:origin: org.apache.cassandra/cassandra-all
@Override
public long getTime(String s)
{
return row.getTime(s);
}
代码示例来源:origin: org.wso2.carbon.data/org.wso2.carbon.dataservices.core
paramValue = new ParamValue(row.isNull(i) ? null : Integer.toString(row.getShort(i)));
} else if (columnType.getName().equals(DataType.Name.TIME)) {
paramValue = new ParamValue(row.isNull(i) ? null : ConverterUtil.convertToString(row.getTime(i)));
} else if (columnType.getName().equals(DataType.Name.DATE)) {
paramValue = new ParamValue(row.isNull(i) ? null : ConverterUtil.convertToString(row.getDate(i)));
代码示例来源:origin: jsevellec/cassandra-unit
@Override
public long getTime(String s)
{
return row.getTime(s);
}
代码示例来源:origin: org.apache.cassandra/cassandra-all
@Override
public long getTime(int i)
{
return row.getTime(i);
}
代码示例来源:origin: jsevellec/cassandra-unit
@Override
public long getTime(int i)
{
return row.getTime(i);
}
代码示例来源:origin: com.strapdata.cassandra/cassandra-all
@Override
public long getTime(int i)
{
return row.getTime(i);
}
代码示例来源:origin: net.oneandone.troilus/troilus-core-java7
@Override
public long getTime(String name) {
return row.getTime(name);
}
代码示例来源:origin: com.strapdata.cassandra/cassandra-all
@Override
public long getTime(String s)
{
return row.getTime(s);
}
内容来源于网络,如有侵权,请联系作者删除!