public class CDOBalancedTree extends Object
objects
to a folder
rooted, balanced tree such that configurable
capacities for resources per folder and objects per resource are never exceeded. This class is useful if a large number of objects
does not form a tree naturally but long lists would hinder fast lazy loading.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CAPACITY |
static int |
DEFAULT_LOCK_TIMEOUT |
Constructor and Description |
---|
CDOBalancedTree(CDOResourceFolder root) |
CDOBalancedTree(CDOResourceFolder root,
int nodeCapacity) |
CDOBalancedTree(CDOResourceFolder root,
int folderCapacity,
int resourceCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
addObject(EObject object) |
int |
getFolderCapacity() |
int |
getLockAttempts() |
long |
getLockTimeout() |
int |
getResourceCapacity() |
CDOResourceFolder |
getRoot() |
void |
setLockAttempts(int lockAttempts) |
void |
setLockTimeout(long lockTimeout) |
public static final int DEFAULT_CAPACITY
public static final int DEFAULT_LOCK_TIMEOUT
public CDOBalancedTree(CDOResourceFolder root, int folderCapacity, int resourceCapacity)
public CDOBalancedTree(CDOResourceFolder root, int nodeCapacity)
public CDOBalancedTree(CDOResourceFolder root)
public final CDOResourceFolder getRoot()
public final int getFolderCapacity()
public final int getResourceCapacity()
public final int getLockAttempts()
public final void setLockAttempts(int lockAttempts)
public final long getLockTimeout()
public final void setLockTimeout(long lockTimeout)
public void addObject(EObject object)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html