Class IsmFormat.IsmShardCoder
- java.lang.Object
-
- org.apache.beam.sdk.coders.Coder<T>
-
- org.apache.beam.sdk.coders.StructuredCoder<T>
-
- org.apache.beam.sdk.coders.AtomicCoder<IsmFormat.IsmShard>
-
- org.apache.beam.runners.dataflow.internal.IsmFormat.IsmShardCoder
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- IsmFormat
public static class IsmFormat.IsmShardCoder extends org.apache.beam.sdk.coders.AtomicCoder<IsmFormat.IsmShard>
A coder forIsmFormat.IsmShards.The shard descriptor is encoded as:
- id (variable length integer encoding)
- blockOffset (variable length long encoding)
- indexOffset (variable length long encoding)
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconsistentWithEquals()IsmFormat.IsmSharddecode(java.io.InputStream inStream)voidencode(IsmFormat.IsmShard value, java.io.OutputStream outStream)static IsmFormat.IsmShardCoderof()Returns an IsmShardCoder.voidverifyDeterministic()-
Methods inherited from class org.apache.beam.sdk.coders.AtomicCoder
equals, getCoderArguments, getComponents, hashCode
-
-
-
-
Method Detail
-
of
public static IsmFormat.IsmShardCoder of()
Returns an IsmShardCoder.
-
encode
public void encode(IsmFormat.IsmShard value, java.io.OutputStream outStream) throws org.apache.beam.sdk.coders.CoderException, java.io.IOException
- Specified by:
encodein classorg.apache.beam.sdk.coders.Coder<IsmFormat.IsmShard>- Throws:
org.apache.beam.sdk.coders.CoderExceptionjava.io.IOException
-
decode
public IsmFormat.IsmShard decode(java.io.InputStream inStream) throws org.apache.beam.sdk.coders.CoderException, java.io.IOException
- Specified by:
decodein classorg.apache.beam.sdk.coders.Coder<IsmFormat.IsmShard>- Throws:
org.apache.beam.sdk.coders.CoderExceptionjava.io.IOException
-
verifyDeterministic
public void verifyDeterministic()
- Overrides:
verifyDeterministicin classorg.apache.beam.sdk.coders.AtomicCoder<IsmFormat.IsmShard>
-
consistentWithEquals
public boolean consistentWithEquals()
- Overrides:
consistentWithEqualsin classorg.apache.beam.sdk.coders.Coder<IsmFormat.IsmShard>
-
-