public abstract int compare(byte[] key1, byte[] key2); public abstract String name();
static String string(long ptr) { if( ptr == 0 ) return null; return new String(new NativeSlice(ptr, UtilJNI.strlen(ptr)).toByteArray()); }
public static NativeSlice create(NativeBuffer buffer) { if(buffer == null ) { return null; } else { return new NativeSlice(buffer); } }
public static NativeSlice create(NativeBuffer buffer) { if(buffer == null ) { return null; } else { return new NativeSlice(buffer); } }
static String string(long ptr) { if( ptr == 0 ) return null; return new String(new NativeSlice(ptr, UtilJNI.strlen(ptr)).toByteArray()); }
public abstract int compare(byte[] key1, byte[] key2); public abstract String name();
public static NativeSlice create(NativeBuffer buffer) { if(buffer == null ) { return null; } else { return new NativeSlice(buffer); } }
static String string(long ptr) { if( ptr == 0 ) return null; return new String(new NativeSlice(ptr, UtilJNI.strlen(ptr)).toByteArray()); }
public abstract int compare(byte[] key1, byte[] key2); public abstract String name();
private void put(NativeWriteOptions options, NativeBuffer keyBuffer, NativeBuffer valueBuffer) throws DBException { put(options, new NativeSlice(keyBuffer), new NativeSlice(valueBuffer)); }
public byte[] key() throws NativeDB.DBException { assertAllocated(); long slice_ptr = IteratorJNI.key(self); checkStatus(); try { NativeSlice slice = new NativeSlice(); slice.read(slice_ptr, 0); return slice.toByteArray(); } finally { NativeSlice.SliceJNI.delete(slice_ptr); } }
private void put(NativeBuffer keyBuffer, NativeBuffer valueBuffer) { put(new NativeSlice(keyBuffer), new NativeSlice(valueBuffer)); }
public byte[] key() throws NativeDB.DBException { assertAllocated(); long slice_ptr = IteratorJNI.key(self); checkStatus(); try { NativeSlice slice = new NativeSlice(); slice.read(slice_ptr, 0); return slice.toByteArray(); } finally { NativeSlice.SliceJNI.delete(slice_ptr); } }
private void put(NativeWriteOptions options, NativeBuffer keyBuffer, NativeBuffer valueBuffer) throws DBException { put(options, new NativeSlice(keyBuffer), new NativeSlice(valueBuffer)); }