Class IsmFormat.Footer
- java.lang.Object
-
- org.apache.beam.runners.dataflow.internal.IsmFormat.Footer
-
- Enclosing class:
- IsmFormat
public abstract static class IsmFormat.Footer extends java.lang.ObjectThe footer stores the relevant information required to locate the index and bloom filter. It also stores a version byte and the number of keys stored.The footer is encoded as the value containing:
- start of bloom filter offset (big endian long coding)
- start of shard index position offset (big endian long coding)
- number of keys in file (big endian long coding)
- 0x01 (version key as a single byte)
-
-
Field Summary
Fields Modifier and Type Field Description static intFIXED_LENGTHstatic intLONG_BYTESstatic byteVERSION
-
Constructor Summary
Constructors Constructor Description Footer()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract longgetBloomFilterPosition()abstract longgetIndexPosition()abstract longgetNumberOfKeys()abstract bytegetVersion()static IsmFormat.Footerof(long indexPosition, long bloomFilterPosition, long numberOfKeys)
-
-
-
Field Detail
-
LONG_BYTES
public static final int LONG_BYTES
- See Also:
- Constant Field Values
-
FIXED_LENGTH
public static final int FIXED_LENGTH
- See Also:
- Constant Field Values
-
VERSION
public static final byte VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVersion
public abstract byte getVersion()
-
getIndexPosition
public abstract long getIndexPosition()
-
getBloomFilterPosition
public abstract long getBloomFilterPosition()
-
getNumberOfKeys
public abstract long getNumberOfKeys()
-
of
public static IsmFormat.Footer of(long indexPosition, long bloomFilterPosition, long numberOfKeys)
-
-