1 package com.quadcap.sql.file; 2 3 40 41 import java.io.IOException ; 42 import java.io.InputStream ; 43 import java.io.OutputStream ; 44 45 50 public interface SegmentManager { 51 60 public RandomAccessInputStream getInputStream(long seg) 61 throws IOException ; 62 63 72 public RandomAccessOutputStream getOutputStream(long seg) 73 throws IOException ; 74 75 78 public RandomAccess getStream(long seg) throws IOException ; 79 80 89 public void freeSegment(long seg) throws IOException ; 90 91 98 public long putBytes(byte[] buf) throws IOException ; 99 100 106 public byte[] getBytes(long seg) throws IOException ; 107 108 114 public void updateBytes(long seg, byte[] buf) throws IOException ; 115 } 116 | Popular Tags |