public void insert(final String key, final String value) throws Exception {
execute(new Command(){
public Void execute(final Keyspace ks) throws Exception {
ks.insert(key, createColumnPath(COLUMN_NAME), bytes(value));
return null;
}
});
}
Run Code Online (Sandbox Code Playgroud)
新的Command()的主体看起来像一个内联方法?
这叫什么,我想完全理解这一点.
java ×1