public DataBlockEngine(StoreSerializer serializer, StoreConfig storeConfig) { this.serializer = serializer; this.storeConfig = storeConfig; this.dataPath = storeConfig.getDataPath(); }
public DataBlockEngine(StoreSerializer serializer, StoreConfig storeConfig) { this.serializer = serializer; this.storeConfig = storeConfig; this.dataPath = storeConfig.getDataPath(); }
public DataBlock(String fileName, StoreConfig storeConfig) throws IOException { this.fileName = fileName; this.fileId = Long.parseLong(fileName.substring(0, fileName.lastIndexOf("."))); this.file = new File(storeConfig.getDataPath(), fileName); this.storeConfig = storeConfig; this.fileSize = storeConfig.getDataBlockFileSize(); this.fileHeader = new DataBlockFileHeader(); this.flushDataService = new FlushDataService(); init(); }
public DataBlock(String fileName, StoreConfig storeConfig) throws IOException { this.fileName = fileName; this.fileId = Long.parseLong(fileName.substring(0, fileName.lastIndexOf("."))); this.file = new File(storeConfig.getDataPath(), fileName); this.storeConfig = storeConfig; this.fileSize = storeConfig.getDataBlockFileSize(); this.fileHeader = new DataBlockFileHeader(); this.flushDataService = new FlushDataService(); init(); }
public DataBlockEngine(StoreSerializer serializer, StoreConfig storeConfig) { this.serializer = serializer; this.storeConfig = storeConfig; this.dataPath = storeConfig.getDataPath(); }
public DataBlock(String fileName, StoreConfig storeConfig) throws IOException { this.fileName = fileName; this.fileId = Long.parseLong(fileName.substring(0, fileName.lastIndexOf("."))); this.file = new File(storeConfig.getDataPath(), fileName); this.storeConfig = storeConfig; this.fileSize = storeConfig.getDataBlockFileSize(); this.fileHeader = new DataBlockFileHeader(); this.flushDataService = new FlushDataService(); init(); }