本文整理汇总了Java中org.hsqldb.RowAVL.getNode方法的典型用法代码示例。如果您正苦于以下问题:Java RowAVL.getNode方法的具体用法?Java RowAVL.getNode怎么用?Java RowAVL.getNode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hsqldb.RowAVL
的用法示例。
在下文中一共展示了RowAVL.getNode方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAccessor
import org.hsqldb.RowAVL; //导入方法依赖的package包/类
public CachedObject getAccessor(Index key) {
NodeAVL node = (NodeAVL) accessorList[key.getPosition()];
if (node == null) {
return null;
}
if (!node.isInMemory()) {
RowAVL row = (RowAVL) get(node.getPos(), false);
node = row.getNode(key.getPosition());
accessorList[key.getPosition()] = node;
}
return node;
}
示例2: next
import org.hsqldb.RowAVL; //导入方法依赖的package包/类
NodeAVL next(PersistentStore store, NodeAVL x) {
if (x == null) {
return null;
}
RowAVL row = x.getRow(store);
x = row.getNode(position);
NodeAVL temp = x.getRight(store);
if (temp != null) {
x = temp;
temp = x.getLeft(store);
while (temp != null) {
x = temp;
temp = x.getLeft(store);
}
return x;
}
temp = x;
x = x.getParent(store);
while (x != null && x.isRight(temp)) {
temp = x;
x = x.getParent(store);
}
return x;
}
示例3: last
import org.hsqldb.RowAVL; //导入方法依赖的package包/类
NodeAVL last(PersistentStore store, NodeAVL x) {
if (x == null) {
return null;
}
RowAVL row = x.getRow(store);
x = row.getNode(position);
NodeAVL temp = x.getLeft(store);
if (temp != null) {
x = temp;
temp = x.getRight(store);
while (temp != null) {
x = temp;
temp = x.getRight(store);
}
return x;
}
temp = x;
x = x.getParent(store);
while (x != null && x.isLeft(temp)) {
temp = x;
x = x.getParent(store);
}
return x;
}
示例4: getAccessor
import org.hsqldb.RowAVL; //导入方法依赖的package包/类
public CachedObject getAccessor(Index key) {
NodeAVL node = (NodeAVL) accessorList[key.getPosition()];
if (node == null) {
return null;
}
RowAVL row = (RowAVL) get(node.getRow(this), false);
node = row.getNode(key.getPosition());
accessorList[key.getPosition()] = node;
return node;
}