public static class TestHFileBlockHeaderCorruption.HFileBlockChannelPosition extends Object implements Closeable
HFileBlock
.Modifier and Type | Field and Description |
---|---|
private SeekableByteChannel |
channel |
private long |
position |
Constructor and Description |
---|
HFileBlockChannelPosition(SeekableByteChannel channel,
long position) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
SeekableByteChannel |
getChannel() |
long |
getPosition() |
void |
rewind() |
private final SeekableByteChannel channel
private final long position
public HFileBlockChannelPosition(SeekableByteChannel channel, long position)
public SeekableByteChannel getChannel()
public long getPosition()
public void rewind() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.