public class ArrayBucketFactory extends java.lang.Object implements BucketFactory
Constructor and Description |
---|
ArrayBucketFactory() |
Modifier and Type | Method and Description |
---|---|
void |
freeBucket(Bucket b) |
RandomAccessBucket |
makeBucket(long size)
Create a bucket.
|
public RandomAccessBucket makeBucket(long size) throws java.io.IOException
BucketFactory
makeBucket
in interface BucketFactory
size
- The maximum size of the data, or -1 or Long.MAX_VALUE if we don't know.
Some buckets will throw IOException if you go over this length.java.io.IOException
public void freeBucket(Bucket b) throws java.io.IOException
java.io.IOException