1 package com.daffodilwoods.daffodildb.server.datasystem.persistentsystem; 2 3 4 import com.daffodilwoods.database.resource.DException; 5 import com.daffodilwoods.daffodildb.server.sql99.utils._Reference; 6 import com.daffodilwoods.daffodildb.utils.BufferRange; 7 8 14 public interface _RecordCluster { 15 int FAILED = 0; 16 int PARTIAL = 1; 17 int SUCCESSFUL = 2; 18 23 int[] insert(byte[] columnBytes,int startColumnPosition, boolean isUpdate) throws DException; 24 25 31 void update(short recordNumber,byte[] columnBytes) throws DException; 32 33 34 ClusterStatus delete(short recordNumber, boolean checkKeyValidity) throws DException; 35 36 37 38 39 com.daffodilwoods.daffodildb.utils.BufferRange retrieveBufferRange(short recordNumber) throws DException; 40 41 42 Object [] partialRetrieve(short recordNumber) throws DException; 43 44 short getRecordCount()throws DException; 45 46 47 short getActiveRecordCount(); 48 49 Cluster getCluster()throws DException; 50 51 void setCluster(Cluster cluster0) throws DException ; 52 53 void checkValidity(short recordNumber) throws DException; 54 55 56 int getLength0fPartialRecord(short recordNumber) throws DException; 57 58 boolean isComplete(short recordNumber)throws DException; 59 60 int partialUpdate(short recordNumber, int startPosition, byte [] newBytes) throws DException ; 61 62 int getRange() throws DException; 63 64 ClusterStatus partialDelete(short recordNumber) throws DException; 65 66 int freeSpace() throws DException; 67 68 } 69 | Popular Tags |