本文整理汇总了Java中org.sdnplatform.sync.internal.util.Pair类的典型用法代码示例。如果您正苦于以下问题:Java Pair类的具体用法?Java Pair怎么用?Java Pair使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Pair类属于org.sdnplatform.sync.internal.util包,在下文中一共展示了Pair类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: next
import org.sdnplatform.sync.internal.util.Pair; //导入依赖的package包/类
@Override
public Pair<ByteArray, List<Versioned<byte[]>>> next() {
if (hasNext()) {
try {
ByteArray key = getStringAsKey(rs.getString("datakey"));
List<Versioned<byte[]>> vlist = getVersionedList(rs);
hasNextSet = false;
return new Pair<ByteArray,
List<Versioned<byte[]>>>(key, vlist);
} catch (Exception e) {
throw new SyncRuntimeException("Error in DB Iterator",
new PersistException(e));
}
} else {
throw new NoSuchElementException();
}
}
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:18,代码来源:JavaDBStorageEngine.java
示例2: next
import org.sdnplatform.sync.internal.util.Pair; //导入依赖的package包/类
@Override
public Pair<ByteArray, List<Versioned<byte[]>>> next() {
if (hasNext()) {
try {
ByteArray key = getStringAsKey(rs.getString("datakey"));
List<Versioned<byte[]>> vlist = getVersionedList(rs);
hasNextSet = false;
return new Pair<ByteArray,
List<Versioned<byte[]>>>(key, vlist);
} catch (Exception e) {
throw new SyncRuntimeException("Error in DB Iterator",
new PersistException(e));
}
} else {
throw new NoSuchElementException();
}
}
开发者ID:zhenshengcai,项目名称:floodlight-hardware,代码行数:18,代码来源:JavaDBStorageEngine.java
示例3: next
import org.sdnplatform.sync.internal.util.Pair; //导入依赖的package包/类
@Override
public Entry<ByteArray, List<Versioned<byte[]>>> next() {
if (!hasNext()) throw new NoSuchElementException();
KeyedValues kv = currentChunk.next();
ByteArray k = new ByteArray(kv.getKey());
List<Versioned<byte[]>> v =
TProtocolUtil.getVersionedList(kv.getValues());
return new Pair<ByteArray, List<Versioned<byte[]>>>(k, v);
}
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:11,代码来源:RemoteStore.java
示例4: next
import org.sdnplatform.sync.internal.util.Pair; //导入依赖的package包/类
@Override
public Entry<K, Versioned<V>> next() {
Entry<K, List<Versioned<V>>> n = delegate.next();
try {
return new Pair<K, Versioned<V>>(n.getKey(),
handleGet(n.getKey(), null, n.getValue()));
} catch (SyncException e) {
logger.error("Failed to construct next value", e);
return null;
}
}
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:12,代码来源:DefaultStoreClient.java
示例5: next
import org.sdnplatform.sync.internal.util.Pair; //导入依赖的package包/类
@Override
public Entry<K, List<Versioned<V>>> next() {
Entry<ByteArray, List<Versioned<byte[]>>> n = delegate.next();
try {
return new Pair<K, List<Versioned<V>>>(getKeyObject(n.getKey()),
convertValues(n.getValue()));
} catch (SyncException e) {
throw new SyncRuntimeException("Failed to construct next value",
e);
}
}
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:12,代码来源:JacksonStore.java
示例6: next
import org.sdnplatform.sync.internal.util.Pair; //导入依赖的package包/类
@Override
public Entry<ByteArray, List<Versioned<byte[]>>> next() {
if (!hasNext()) throw new NoSuchElementException();
KeyedValues kv = currentChunk.next();
ByteArray k = new ByteArray(kv.getKey());
List<Versioned<byte[]>> v =
TProtocolUtil.getVersionedList(kv.getValues());
return new Pair<ByteArray, List<Versioned<byte[]>>>(k, v);
}
开发者ID:zhenshengcai,项目名称:floodlight-hardware,代码行数:11,代码来源:RemoteStore.java
示例7: next
import org.sdnplatform.sync.internal.util.Pair; //导入依赖的package包/类
@Override
public Entry<K, List<Versioned<V>>> next() {
Entry<ByteArray, List<Versioned<byte[]>>> n = delegate.next();
try {
return new Pair<K, List<Versioned<V>>>(getKeyObject(n.getKey()),
convertValues(n.getValue()));
} catch (SyncException e) {
throw new SyncRuntimeException("Failed to construct next value",
e);
}
}
开发者ID:zhenshengcai,项目名称:floodlight-hardware,代码行数:12,代码来源:JacksonStore.java
注:本文中的org.sdnplatform.sync.internal.util.Pair类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论