| 1 |
/* |
| 2 |
* Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, |
| 3 |
* and the EPL 1.0 (https://h2database.com/html/license.html). |
| 4 |
* Initial Developer: H2 Group |
| 5 |
*/ |
| 6 |
package org.h2.mvstore; |
| 7 |
|
| 8 |
import java.nio.ByteBuffer; |
| 9 |
import java.util.Map; |
| 10 |
|
| 11 |
/** |
| 12 |
* Class SFChunk. |
| 13 |
* <UL> |
| 14 |
* <LI> 4/23/22 12:58 PM initial creation |
| 15 |
* </UL> |
| 16 |
* |
| 17 |
* @author <a href="mailto:[email protected]">Andrei Tokar</a> |
| 18 |
*/ |
| 19 |
final class SFChunk extends Chunk<SFChunk> |
| 20 |
{ |
| 21 |
SFChunk(int id) { |
| 22 |
super(id); |
| 23 |
} |
| 24 |
|
| 25 |
SFChunk(String line) { |
| 26 |
super(line); |
| 27 |
} |
| 28 |
|
| 29 |
SFChunk(Map<String, String> map) { |
| 30 |
super(map, false); |
| 31 |
} |
| 32 |
|
| 33 |
@Override |
| 34 |
protected ByteBuffer readFully(FileStore<SFChunk> fileStore, long filePos, int length) { |
| 35 |
return fileStore.readFully(this, filePos, length); |
| 36 |
} |
| 37 |
} |