Class UdbBypassSpec


  • public final class UdbBypassSpec
    extends java.lang.Object
    Tables and partitions bypassing specification.
    • Constructor Summary

      Constructors 
      Constructor Description
      UdbBypassSpec​(java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> tablePartMap)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasFullTable​(java.lang.String tableName)
      Checks if all partitions of a table should be bypassed.
      boolean hasPartition​(java.lang.String tableName, java.lang.String partitionName)
      Checks by a partition's name if it should be bypassed.
      boolean hasTable​(java.lang.String tableName)
      Checks if a table should be bypassed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UdbBypassSpec

        public UdbBypassSpec​(java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> tablePartMap)
        Parameters:
        tablePartMap - table to partition map
    • Method Detail

      • hasTable

        public boolean hasTable​(java.lang.String tableName)
        Checks if a table should be bypassed.
        Parameters:
        tableName - the table name
        Returns:
        true if the table is configured to be bypassed, false otherwise
        See Also:
        hasFullTable(String)
      • hasFullTable

        public boolean hasFullTable​(java.lang.String tableName)
        Checks if all partitions of a table should be bypassed.
        Parameters:
        tableName - the table name
        Returns:
        true if the table is configured to be fully bypassed, false otherwise
        See Also:
        hasTable(String)
      • hasPartition

        public boolean hasPartition​(java.lang.String tableName,
                                    java.lang.String partitionName)
        Checks by a partition's name if it should be bypassed.
        Parameters:
        tableName - the table name
        partitionName - the partition name
        Returns:
        true if the partition should be bypassed, false otherwise