You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2018/05/10 19:56:15 UTC
[GitHub] ctubbsii commented on a change in pull request #484: Inline
BlockFile interfaces. Fixes #480
ctubbsii commented on a change in pull request #484: Inline BlockFile interfaces. Fixes #480
URL: https://github.com/apache/accumulo/pull/484#discussion_r187439001
##########
File path: core/src/main/java/org/apache/accumulo/core/file/blockfile/impl/CachableBlockFile.java
##########
@@ -88,19 +82,16 @@ public Writer(FileSystem fs, Path fName, String compressAlgor, RateLimiter write
_bc = new BCFile.Writer(fsout, compressAlgor, conf, false, accumuloConfiguration);
}
- @Override
- public ABlockWriter prepareMetaBlock(String name) throws IOException {
- _bw = new BlockWrite(_bc.prepareMetaBlock(name));
+ public BCFile.Writer.BlockAppender prepareMetaBlock(String name) throws IOException {
+ _bw = _bc.prepareMetaBlock(name);
return _bw;
}
- @Override
- public ABlockWriter prepareDataBlock() throws IOException {
- _bw = new BlockWrite(_bc.prepareDataBlock());
+ public BCFile.Writer.BlockAppender prepareDataBlock() throws IOException {
+ _bw = _bc.prepareDataBlock();
return _bw;
}
- @Override
Review comment:
This should still be `Closeable` and have the `@Override` from that method.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services