本文整理汇总了Java中com.datastax.driver.core.Row.getDate方法的典型用法代码示例。如果您正苦于以下问题:Java Row.getDate方法的具体用法?Java Row.getDate怎么用?Java Row.getDate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.datastax.driver.core.Row
的用法示例。
在下文中一共展示了Row.getDate方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: marshalRow
import com.datastax.driver.core.Row; //导入方法依赖的package包/类
protected IndexCreatedEvent marshalRow(Row row)
{
if (row == null)
{
return null;
}
//look up index here
Index index = new Index();
index.setName(row.getString(Columns.INDEX_NAME));
index.setTable(row.getString(Columns.DATABASE), row.getString(Columns.TABLE));
Index toUse;
try
{
toUse = indexRepo.read(index.getId());
} catch (ItemNotFoundException e)//this should only happen in tests that do not have full test data established; errors will be evident if this happens in the actual app
{
toUse = index;
}
IndexCreatedEvent i = new IndexCreatedEvent(row.getUUID(Columns.ID), row.getDate(Columns.STARTED_AT), row.getDate(Columns.UPDATED_AT), toUse, row.getLong(Columns.TOTAL_RECORDS), row.getLong(Columns.RECORDS_COMPLETED));
i.setFatalError(row.getString(Columns.FATAL_ERROR));
i.setErrors(row.getList(Columns.ERRORS, String.class));
i.calculateValues();
return i;
}
示例2: load
import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Data load(Data data, Row row) {
data.id = row.getString(0);
data.type = row.getInt(1); // NOTE: in datastax driver, If the int value is NULL, 0 is returned!
data.expires = row.getDate(2);
data.other = row.getInt(3);
data.ns = row.getString(4);
data.notes = row.getString(5);
data.cred = row.getBytesUnsafe(6);
return data;
}
示例3: load
import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Data load(Data data, Row row) {
data.user = row.getString(0);
data.delegate = row.getString(1);
data.expires = row.getDate(2);
return data;
}
示例4: load
import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Data load(Data data, Row row) {
data.user = row.getString(0);
data.role = row.getString(1);
data.ns = row.getString(2);
data.rname = row.getString(3);
data.expires = row.getDate(4);
return data;
}
示例5: load
import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Data load(Data data, Row row) {
// Int more efficient
data.name = row.getString(0);
data.seg = row.getInt(1);
data.touched = row.getDate(2);
return data;
}
示例6: load
import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Data load(Data data, Row row) {
data.mechid = row.getString(0);
data.machine = row.getString(1);
data.type = row.getSet(2, String.class);
data.sponsor = row.getString(3);
data.ca = row.getString(4);
data.dir = row.getString(5);
data.appName = row.getString(6);
data.os_user = row.getString(7);
data.notify = row.getString(8);
data.expires = row.getDate(9);
data.renewDays = row.getInt(10);
return data;
}
示例7: load
import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Data load(Data data, Row row) {
data.id = row.getUUID(0);
data.target = row.getString(1);
data.memo = row.getString(2);
data.start = row.getDate(3);
data.expires = row.getDate(4);
data.construct = row.getBytes(5);
return data;
}
示例8: create
import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public UserRole create(Row row) {
return new UserRole(row.getString(0), row.getString(1), row.getString(2),row.getString(3),row.getDate(4));
}
示例9: create
import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Future create(Row row) {
return new Future(row.getUUID(0),row.getString(1),row.getString(2),
row.getDate(3),row.getDate(4));
}
示例10: create
import com.datastax.driver.core.Row; //导入方法依赖的package包/类
@Override
public Notification create(Row row) {
return new Notification(row.getString(0), row.getInt(1), row.getDate(2),row.getInt(3));
}