32 lines
620 B
Java
32 lines
620 B
Java
package org.warp.cowdb;
|
|
|
|
import java.io.IOException;
|
|
|
|
public interface IReferencesMetadata {
|
|
/**
|
|
* Get block of reference
|
|
* @param reference reference
|
|
* @return block id
|
|
*/
|
|
long getReference(long reference) throws IOException;
|
|
|
|
/**
|
|
* Allocate a block for a new reference
|
|
* @param blockId block id
|
|
* @return reference
|
|
*/
|
|
long newReference(long blockId) throws IOException;
|
|
|
|
/**
|
|
* Change reference size
|
|
* @param reference reference
|
|
* @param blockId block id
|
|
*/
|
|
void editReference(long reference, long blockId) throws IOException;
|
|
|
|
/**
|
|
* Close file
|
|
*/
|
|
void close() throws IOException;
|
|
}
|