Class ChunkIntervalImpl

java.lang.Object
com.exasol.parquetio.data.ChunkIntervalImpl
All Implemented Interfaces:
ChunkInterval

public final class ChunkIntervalImpl extends Object implements ChunkInterval
An implementation of ChunkInterval that holds start and end position of row group chunks.
  • Constructor Details

    • ChunkIntervalImpl

      public ChunkIntervalImpl(long start, long end)
      Creates a new instance of ChunkInterval.
      Parameters:
      start - a starting row group position
      end - an ending row group position
  • Method Details

    • getStartPosition

      public long getStartPosition()
      Description copied from interface: ChunkInterval
      Gets the start position of this interval.
      Specified by:
      getStartPosition in interface ChunkInterval
      Returns:
      a start position
    • getEndPosition

      public long getEndPosition()
      Description copied from interface: ChunkInterval
      Gets the end position of this interval that is not inclusive.
      Specified by:
      getEndPosition in interface ChunkInterval
      Returns:
      an end position
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object