Package org.apache.orc.impl
Interface IntegerWriter
- All Known Implementing Classes:
RunLengthIntegerWriter
,RunLengthIntegerWriterV2
public interface IntegerWriter
Interface for writing integers.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
long
Estimate the amount of memory being used.void
flush()
Flush the buffervoid
getPosition
(PositionRecorder recorder) Get position from the stream.void
write
(long value) Write the integer value
-
Method Details
-
getPosition
Get position from the stream.- Parameters:
recorder
-- Throws:
IOException
-
write
Write the integer value- Parameters:
value
-- Throws:
IOException
-
flush
Flush the buffer- Throws:
IOException
-
estimateMemory
long estimateMemory()Estimate the amount of memory being used.- Returns:
- number of bytes
-
changeIv
-