BlockListpublic class SmallDocumentBlockList
extends java.lang.Object
| Constructor | Description |
|---|---|
SmallDocumentBlockList(java.util.List blocks) |
Constructor SmallDocumentBlockList
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
blockCount() |
Returns the count of the number of blocks
|
ListManagedBlock[] |
fetchBlocks(int startBlock,
int headerPropertiesStartBlock) |
get the blocks making up a particular stream in the list.
|
protected ListManagedBlock |
get(int index) |
Unit testing method.
|
protected int |
remainingBlocks() |
Returns the number of remaining blocks
|
ListManagedBlock |
remove(int index) |
remove and return the specified block from the list
|
void |
setBAT(BlockAllocationTableReader bat) |
set the associated BlockAllocationTable
|
protected void |
setBlocks(ListManagedBlock[] blocks) |
provide blocks to manage
|
void |
zap(int index) |
remove the specified block from the list
|
public SmallDocumentBlockList(java.util.List blocks)
blocks - a list of SmallDocumentBlock instancesprotected void setBlocks(ListManagedBlock[] blocks)
blocks - blocks to be managedpublic void zap(int index)
protected ListManagedBlock get(int index)
public ListManagedBlock remove(int index) throws java.io.IOException
public ListManagedBlock[] fetchBlocks(int startBlock, int headerPropertiesStartBlock) throws java.io.IOException
fetchBlocks in interface BlockListstartBlock - the index of the first block in the streamheaderPropertiesStartBlock - the index of the first header block in the streamjava.io.IOException - if blocks are missingpublic void setBAT(BlockAllocationTableReader bat) throws java.io.IOException
public int blockCount()
blockCount in interface BlockListprotected int remainingBlocks()
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.