/** * Default constructor. Generates leaf ID. */ public LeafWithNoDescriptors() { this(StorageUtil.getRandomInt()); }
/** * Default constructor. Generates leaf ID. */ public ArrayBasedStorageLeaf() { this(StorageUtil.getRandomInt()); }
/** * This constructor will generate unique ID and will not set child indexer. * * @param delegateIndexer * Provides delegate indexer with a constructor. * @param passId * If pass ID mode is on. With this mode, all sub-components created with this * indexer will have same ID, thus write will be done in same file. */ public StorageBranchIndexer(IBranchIndexer<E> delegateIndexer, boolean passId) { this(delegateIndexer, null, StorageUtil.getRandomInt(), passId); }
/** * This constructor allows setting of all properties except ID that will be uniquely generated. * * @param delegateIndexer * Provides delegate indexer with a constructor. * @param childIndexer * Provides child indexer. * @param passId * If pass ID mode is on. With this mode, all sub-components created with this * indexer will have same ID, thus write will be done in same file. */ public StorageBranchIndexer(IBranchIndexer<E> delegateIndexer, StorageBranchIndexer<E> childIndexer, boolean passId) { this(delegateIndexer, childIndexer, StorageUtil.getRandomInt(), passId); }