Package org.apache.beam.sdk.io
Class DefaultFilenamePolicy.ParamsCoder
- java.lang.Object
-
- org.apache.beam.sdk.coders.Coder<T>
-
- org.apache.beam.sdk.coders.StructuredCoder<T>
-
- org.apache.beam.sdk.coders.AtomicCoder<DefaultFilenamePolicy.Params>
-
- org.apache.beam.sdk.io.DefaultFilenamePolicy.ParamsCoder
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- DefaultFilenamePolicy
public static class DefaultFilenamePolicy.ParamsCoder extends AtomicCoder<DefaultFilenamePolicy.Params>
A Coder forDefaultFilenamePolicy.Params
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.beam.sdk.coders.Coder
Coder.Context, Coder.NonDeterministicException
-
-
Constructor Summary
Constructors Constructor Description ParamsCoder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultFilenamePolicy.Params
decode(java.io.InputStream inStream)
Decodes a value of typeT
from the given input stream in the given context.void
encode(DefaultFilenamePolicy.Params value, java.io.OutputStream outStream)
Encodes the given value of typeT
onto the given output stream.static DefaultFilenamePolicy.ParamsCoder
of()
-
Methods inherited from class org.apache.beam.sdk.coders.AtomicCoder
equals, getCoderArguments, getComponents, hashCode, verifyDeterministic
-
Methods inherited from class org.apache.beam.sdk.coders.StructuredCoder
toString
-
Methods inherited from class org.apache.beam.sdk.coders.Coder
consistentWithEquals, decode, encode, getEncodedElementByteSize, getEncodedTypeDescriptor, isRegisterByteSizeObserverCheap, registerByteSizeObserver, structuralValue, verifyDeterministic, verifyDeterministic
-
-
-
-
Method Detail
-
of
public static DefaultFilenamePolicy.ParamsCoder of()
-
encode
public void encode(DefaultFilenamePolicy.Params value, java.io.OutputStream outStream) throws java.io.IOException
Description copied from class:Coder
Encodes the given value of typeT
onto the given output stream.- Specified by:
encode
in classCoder<DefaultFilenamePolicy.Params>
- Throws:
java.io.IOException
- if writing to theOutputStream
fails for some reasonCoderException
- if the value could not be encoded for some reason
-
decode
public DefaultFilenamePolicy.Params decode(java.io.InputStream inStream) throws java.io.IOException
Description copied from class:Coder
Decodes a value of typeT
from the given input stream in the given context. Returns the decoded value.- Specified by:
decode
in classCoder<DefaultFilenamePolicy.Params>
- Throws:
java.io.IOException
- if reading from theInputStream
fails for some reasonCoderException
- if the value could not be decoded for some reason
-
-