org.neo4j.kernel.impl.util
Class RelIdArrayWithLoops

java.lang.Object
  extended by org.neo4j.kernel.impl.util.RelIdArray
      extended by org.neo4j.kernel.impl.util.RelIdArrayWithLoops

public class RelIdArrayWithLoops
extends RelIdArray


Nested Class Summary
 
Nested classes/interfaces inherited from class org.neo4j.kernel.impl.util.RelIdArray
RelIdArray.DirectionWrapper, RelIdArray.EmptyRelIdArray, RelIdArray.IdBlock, RelIdArray.RelIdIteratorImpl
 
Field Summary
 
Fields inherited from class org.neo4j.kernel.impl.util.RelIdArray
EMPTY, EMPTY_BLOCK
 
Constructor Summary
protected RelIdArrayWithLoops(RelIdArray from)
           
  RelIdArrayWithLoops(String type)
           
protected RelIdArrayWithLoops(String type, RelIdArray.IdBlock out, RelIdArray.IdBlock in, RelIdArray.IdBlock loop)
           
 
Method Summary
 RelIdArray addAll(RelIdArray source)
           
 boolean couldBeNeedingUpdate()
          Optimization in the lazy loading of relationships for a node.
 RelIdArray downgradeIfPossible()
           
protected  RelIdArray.IdBlock getLastLoopBlock()
           
 RelIdArray newSimilarInstance()
           
protected  void setLastLoopBlock(RelIdArray.IdBlock block)
           
 RelIdArray shrink()
           
 RelIdArray upgradeIfNeeded(RelIdArray capabilitiesToMatch)
           
 
Methods inherited from class org.neo4j.kernel.impl.util.RelIdArray
add, append, empty, from, getType, isEmpty, iterator, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelIdArrayWithLoops

public RelIdArrayWithLoops(String type)

RelIdArrayWithLoops

protected RelIdArrayWithLoops(RelIdArray from)

RelIdArrayWithLoops

protected RelIdArrayWithLoops(String type,
                              RelIdArray.IdBlock out,
                              RelIdArray.IdBlock in,
                              RelIdArray.IdBlock loop)
Method Detail

getLastLoopBlock

protected RelIdArray.IdBlock getLastLoopBlock()
Overrides:
getLastLoopBlock in class RelIdArray

setLastLoopBlock

protected void setLastLoopBlock(RelIdArray.IdBlock block)
Overrides:
setLastLoopBlock in class RelIdArray

upgradeIfNeeded

public RelIdArray upgradeIfNeeded(RelIdArray capabilitiesToMatch)
Overrides:
upgradeIfNeeded in class RelIdArray

downgradeIfPossible

public RelIdArray downgradeIfPossible()
Overrides:
downgradeIfPossible in class RelIdArray

addAll

public RelIdArray addAll(RelIdArray source)
Overrides:
addAll in class RelIdArray

newSimilarInstance

public RelIdArray newSimilarInstance()
Overrides:
newSimilarInstance in class RelIdArray

couldBeNeedingUpdate

public boolean couldBeNeedingUpdate()
Description copied from class: RelIdArray
Optimization in the lazy loading of relationships for a node. RelIdIterator.updateSource(RelIdArray) is only called if this returns true, i.e if a RelIdArray.EmptyRelIdArray or RelIdArray.IdBlock might have gotten upgraded to handle f.ex loops or high id ranges so that the RelIdIterator gets updated accordingly.

Overrides:
couldBeNeedingUpdate in class RelIdArray

shrink

public RelIdArray shrink()
Overrides:
shrink in class RelIdArray


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.