public void delete() { assertAllocated(); DBJNI.delete(self); self = 0; }
public void delete() { assertAllocated(); DBJNI.delete(self); self = 0; }
private void compactRange( NativeSlice beginSlice, NativeSlice endSlice) { assertAllocated(); DBJNI.CompactRange(self, beginSlice, endSlice); }
public void delete() { assertAllocated(); DBJNI.delete(self); self = 0; }
private void compactRange( NativeSlice beginSlice, NativeSlice endSlice) { assertAllocated(); DBJNI.CompactRange(self, beginSlice, endSlice); }
private void compactRange( NativeSlice beginSlice, NativeSlice endSlice) { assertAllocated(); DBJNI.CompactRange(self, beginSlice, endSlice); }
private void put(NativeWriteOptions options, NativeSlice keySlice, NativeSlice valueSlice) throws DBException { assertAllocated(); checkStatus(DBJNI.Put(self, options, keySlice, valueSlice)); }
private void put(NativeWriteOptions options, NativeSlice keySlice, NativeSlice valueSlice) throws DBException { assertAllocated(); checkStatus(DBJNI.Put(self, options, keySlice, valueSlice)); }
private void delete(NativeWriteOptions options, NativeSlice keySlice) throws DBException { assertAllocated(); checkStatus(DBJNI.Delete(self, options, keySlice)); }
private void delete(NativeWriteOptions options, NativeSlice keySlice) throws DBException { assertAllocated(); checkStatus(DBJNI.Delete(self, options, keySlice)); }
private void delete(NativeWriteOptions options, NativeSlice keySlice) throws DBException { assertAllocated(); checkStatus(DBJNI.Delete(self, options, keySlice)); }
private void put(NativeWriteOptions options, NativeSlice keySlice, NativeSlice valueSlice) throws DBException { assertAllocated(); checkStatus(DBJNI.Put(self, options, keySlice, valueSlice)); }
private byte[] getProperty(NativeSlice nameSlice) { assertAllocated(); NativeStdString result = new NativeStdString(); try { if( DBJNI.GetProperty(self, nameSlice, result.pointer()) ) { return result.toByteArray(); } else { return null; } } finally { result.delete(); } }
private byte[] getProperty(NativeSlice nameSlice) { assertAllocated(); NativeStdString result = new NativeStdString(); try { if( DBJNI.GetProperty(self, nameSlice, result.pointer()) ) { return result.toByteArray(); } else { return null; } } finally { result.delete(); } }
private byte[] getProperty(NativeSlice nameSlice) { assertAllocated(); NativeStdString result = new NativeStdString(); try { if( DBJNI.GetProperty(self, nameSlice, result.pointer()) ) { return result.toByteArray(); } else { return null; } } finally { result.delete(); } }
private byte[] get(NativeReadOptions options, NativeSlice keySlice) throws DBException { assertAllocated(); NativeStdString result = new NativeStdString(); try { long s = DBJNI.Get(self, options, keySlice, result.pointer()); NativeStatus status = new NativeStatus(s); try { if(status.isOk()) { return result.toByteArray(); } if(status.isNotFound()) { return null; } throw new DBException(status.toString(), status.isNotFound()); } finally { status.delete(); } } finally { result.delete(); } }
private byte[] get(NativeReadOptions options, NativeSlice keySlice) throws DBException { assertAllocated(); NativeStdString result = new NativeStdString(); try { long s = DBJNI.Get(self, options, keySlice, result.pointer()); NativeStatus status = new NativeStatus(s); try { if(status.isOk()) { return result.toByteArray(); } if(status.isNotFound()) { return null; } throw new DBException(status.toString(), status.isNotFound()); } finally { status.delete(); } } finally { result.delete(); } }
private byte[] get(NativeReadOptions options, NativeSlice keySlice) throws DBException { assertAllocated(); NativeStdString result = new NativeStdString(); try { long s = DBJNI.Get(self, options, keySlice, result.pointer()); NativeStatus status = new NativeStatus(s); try { if(status.isOk()) { return result.toByteArray(); } if(status.isNotFound()) { return null; } throw new DBException(status.toString(), status.isNotFound()); } finally { status.delete(); } } finally { result.delete(); } }