use of org.apache.jackrabbit.commons.flat.BTreeManager in project jackrabbit by apache.
the class ItemSequenceTest method testEmptyPropertySequence.
public void testEmptyPropertySequence() throws RepositoryException {
Comparator<String> order = Rank.<String>comparableComparator();
TreeManager treeManager = new BTreeManager(testNode, 2, 4, order, true);
PropertySequence properties = ItemSequence.createPropertySequence(treeManager, errorHandler);
Iterator<Property> propertyIt = properties.iterator();
assertFalse(propertyIt.hasNext());
assertEmpty(properties);
}
use of org.apache.jackrabbit.commons.flat.BTreeManager in project jackrabbit by apache.
the class GroupImpl method getPropertySequence.
static PropertySequence getPropertySequence(Node nMembers, UserManagerImpl userManager) throws RepositoryException {
Comparator<String> order = Rank.comparableComparator();
int maxChildren = userManager.getMemberSplitSize();
int minChildren = maxChildren / 2;
TreeManager treeManager = new BTreeManager(nMembers, minChildren, maxChildren, order, userManager.isAutoSave());
return ItemSequence.createPropertySequence(treeManager);
}
Aggregations