本文整理匯總了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));
}