407408409410411412413414415416417
tim = System.currentTimeMillis(); Iterator<ByteSource> bvalues = store.binaryValues(); iterCnt = 0; while( bvalues.hasNext() ) { ByteSource read = bvalues.next(); if ( read == null ) { System.out.println("ERROR"); } iterCnt++; }
3536373839404142434445
public abstract V decodeValue(BytezByteSource val); public V get( K key ) { if ( key == null ) return null; ByteSource bkey = encodeKey(key); BytezByteSource val = getBinary(bkey); if ( val == null ) return null; try { return decodeValue(val);
495051525354555657
} } public void put( K key, V value ) { ByteSource bkey = encodeKey(key); ByteSource decoded = encodeValue(value); putBinary(bkey, decoded); }
5556575859606162
ByteSource decoded = encodeValue(value); putBinary(bkey, decoded); } public void remove( K key ) { ByteSource bkey = encodeKey(key); removeBinary(bkey); }