Class DirectBatchUnboundedSource

    • Field Detail

      • CFG_ENABLE_CHECKPOINT_PARTITION_MERGE

        public static final java.lang.String CFG_ENABLE_CHECKPOINT_PARTITION_MERGE
        See Also:
        Constant Field Values
      • startStamp

        private final long startStamp
      • endStamp

        private final long endStamp
      • enableCheckpointPartitionMerge

        private final boolean enableCheckpointPartitionMerge
      • partitions

        private transient java.util.List<Partition> partitions
    • Constructor Detail

      • DirectBatchUnboundedSource

        private DirectBatchUnboundedSource​(RepositoryFactory repositoryFactory,
                                           BatchLogReader reader,
                                           java.util.List<AttributeDescriptor<?>> attributes,
                                           long startStamp,
                                           long endStamp,
                                           java.util.Map<java.lang.String,​java.lang.Object> cfg)
      • DirectBatchUnboundedSource

        private DirectBatchUnboundedSource​(DirectBatchUnboundedSource parent,
                                           java.util.List<Partition> partitions,
                                           long startStamp,
                                           long endStamp)
    • Method Detail

      • isEnableCheckpointPartitionMerge

        static boolean isEnableCheckpointPartitionMerge​(java.util.Map<java.lang.String,​java.lang.Object> cfg)
      • getBool

        private static boolean getBool​(java.lang.String name,
                                       java.util.Map<java.lang.String,​java.lang.Object> cfg)
      • merge

        static java.util.List<Partition> merge​(boolean enabled,
                                               java.util.List<Partition> own,
                                               java.util.List<Partition> fromCheckpoint)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getOutputCoder

        public org.apache.beam.sdk.coders.Coder<StreamElement> getOutputCoder()
        Overrides:
        getOutputCoder in class org.apache.beam.sdk.io.Source<StreamElement>
      • writeObject

        private void writeObject​(java.io.ObjectOutputStream stream)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readObject

        private void readObject​(java.io.ObjectInputStream stream)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException