| Constructor and Description |
|---|
CdbBuilder(String filename,
String tmpFilename)
Constructs an object to build constant database.
|
public CdbBuilder(String filename, String tmpFilename) throws IOException
filename - database filename.tmpFilename - temporary filename in building database.IOException - if an I/O error occurs.public void add(byte[] key,
int koff,
int klen,
byte[] value,
int voff,
int vlen)
throws IOException
key - key which the specified value to be associatedkoff - offset of keyklen - length of keyvalue - value to be associated with specified keyvoff - offset of valuevlen - length of valueIOException - if an I/O error occurspublic void add(byte[] key,
byte[] value)
throws IOException
key - key which the specified value to be associated.value - value to be associated with specified key.IOException - if an I/O error occurs.public void finish()
throws IOException
IOException - if an I/O error occurs.Copyright © 2016 New York University. All rights reserved.