Package net.sf.joafip.kvstore.record.entity

Examples of net.sf.joafip.kvstore.record.entity.DataRecordKey


      final ObjectOutputStream outputStream = new ObjectOutputStream(
          byteArrayOutputStream);
      outputStream.writeObject(key);
      outputStream.close();
      final byte[] keyData = byteArrayOutputStream.toByteArray();
      final DataRecordKey dataRecordKey = new DataRecordKey(this, keyData);
      dataRecordKey.setKey(key);
      return new DataRecordIdentifier(dataRecordKey);
    } catch (Exception exception) {
      throw new HeapException("creating key", exception);
    }
  }
View Full Code Here


    if (long1 == -1) {
      final int keySize = readInteger();
      dataRecordHeaderSize = DATA_RECORD_HEADER_SIZE + 4 + keySize;
      readFileAppendToIoBuffer(dataRecordHeaderSize);
      final byte[] keyData = readBytes(keySize);
      final IDataRecordKey dataRecordKey = new DataRecordKey(
          heapElementManager.getDataRecordKeyManager(), keyData);
      nodeIdentifier = new DataRecordIdentifier(dataRecordKey);
    } else {
      dataRecordHeaderSize = DATA_RECORD_HEADER_SIZE;
      nodeIdentifier = new DataRecordIdentifier(long1);
View Full Code Here

    if (value == -1) {
      final int keySize = readInteger();
      final byte[] keyData = readBytes(keySize);
      final IDataRecordKeyManager dataRecordKeyManager = heapElementManager
          .getDataRecordKeyManager();
      final IDataRecordKey dataRecordKey = new DataRecordKey(
          dataRecordKeyManager, keyData);
      dataRecordIdentifier = new DataRecordIdentifier(dataRecordKey);
    } else {
      dataRecordIdentifier = new DataRecordIdentifier(value);
    }
View Full Code Here

TOP

Related Classes of net.sf.joafip.kvstore.record.entity.DataRecordKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.