@Test(expected = UnsupportedOperationException.class) public void cannot_add_all() throws Exception { file_support.create_file(tmpfile, tsdata); final UnmappedReadonlyTSDataFile fd = UnmappedReadonlyTSDataFile.open(tmpfile); fd.addAll(tsdata); }
public static UnmappedReadonlyTSDataFile open(Path file) throws IOException { final GCCloseable<FileChannel> fd = new GCCloseable<>(FileChannel.open(file, StandardOpenOption.READ)); return new UnmappedReadonlyTSDataFile(fd); }
UnmappedReadonlyTSDataFile extends SequenceTSData { public static UnmappedReadonlyTSDataFile open(Path file) throws IOException { final GCCloseable<FileChannel> fd = new GCCloseable<>(FileChannel.open(file, StandardOpenOption.READ)); return new UnmappedReadonlyTSDataFile(fd); } }
UnmappedReadonlyTSDataFile extends SequenceTSData { public static UnmappedReadonlyTSDataFile open(Path file) throws IOException { final GCCloseable<FileChannel> fd = new GCCloseable<>(FileChannel.open(file, StandardOpenOption.READ)); return new UnmappedReadonlyTSDataFile(fd); } UnmappedReadonlyTSDataFile(GCCloseable<FileChannel> fd); }
UnmappedReadonlyTSDataFile extends SequenceTSData { public static UnmappedReadonlyTSDataFile open(Path file) throws IOException { final GCCloseable<FileChannel> fd = new GCCloseable<>(FileChannel.open(file, StandardOpenOption.READ)); return new UnmappedReadonlyTSDataFile(fd); } UnmappedReadonlyTSDataFile(GCCloseable<FileChannel> fd); static UnmappedReadonlyTSDataFile open(Path file); @Override ObjectSequence<TimeSeriesCollection> getSequence(); @Override DateTime getBegin(); @Override DateTime getEnd(); @Override short getMajor(); @Override short getMinor(); @Override long getFileSize(); @Override boolean canAddSingleRecord(); @Override boolean isOptimized(); @Override boolean add(TimeSeriesCollection tsv); @Override Optional<GCCloseable<FileChannel>> getFileChannel(); }
UnmappedReadonlyTSDataFile extends SequenceTSData { public static UnmappedReadonlyTSDataFile open(Path file) throws IOException { final GCCloseable<FileChannel> fd = new GCCloseable<>(FileChannel.open(file, StandardOpenOption.READ)); return new UnmappedReadonlyTSDataFile(fd); } UnmappedReadonlyTSDataFile(GCCloseable<FileChannel> fd); static UnmappedReadonlyTSDataFile open(Path file); @Override ObjectSequence<TimeSeriesCollection> getSequence(); @Override DateTime getBegin(); @Override DateTime getEnd(); @Override short getMajor(); @Override short getMinor(); @Override long getFileSize(); @Override boolean canAddSingleRecord(); @Override boolean isOptimized(); @Override boolean add(TimeSeriesCollection tsv); @Override Optional<GCCloseable<FileChannel>> getFileChannel();  }