Package org.apache.orc.impl.writer
Class StreamOptions
java.lang.Object
org.apache.orc.impl.writer.StreamOptions
The compression and encryption options for writing a stream.
-
Constructor Summary
ConstructorDescriptionStreamOptions
(int bufferSize) An option object with the given buffer size set.StreamOptions
(StreamOptions other) -
Method Summary
Modifier and TypeMethodDescriptionbufferSize
(int bufferSize) int
getCodec()
byte[]
getIv()
getKey()
boolean
Modify the IV.toString()
withCodec
(CompressionCodec codec, CompressionCodec.Options options) Compress using the given codec.withEncryption
(EncryptionAlgorithm algorithm, Key key)
-
Constructor Details
-
StreamOptions
-
StreamOptions
public StreamOptions(int bufferSize) An option object with the given buffer size set.- Parameters:
bufferSize
- the size of the buffers.
-
-
Method Details
-
bufferSize
-
withCodec
Compress using the given codec.- Parameters:
codec
- the codec to compress with- Returns:
- this
-
withEncryption
-
modifyIv
Modify the IV.- Parameters:
modifier
- the function to modify the IV- Returns:
- returns this
-
getCodec
-
getCodecOptions
-
getIv
public byte[] getIv() -
getBufferSize
public int getBufferSize() -
isEncrypted
public boolean isEncrypted() -
getKey
-
getAlgorithm
-
toString
-