Interface BucketCreator<T extends org.gorpipe.gor.table.BucketableTableEntry>

All Known Implementing Classes:
BucketCreatorGorPipe

public interface BucketCreator<T extends org.gorpipe.gor.table.BucketableTableEntry>
Helper class to create bucket files from bucket descriptions.
  • Method Summary

    Modifier and Type Method Description
    void createBuckets​(org.gorpipe.gor.table.BaseTable<T> table, java.util.Map<java.nio.file.Path,​java.util.List<T>> bucketsToCreate, java.nio.file.Path absBucketDir)
    Create bucket files.
  • Method Details

    • createBuckets

      void createBuckets​(org.gorpipe.gor.table.BaseTable<T> table, java.util.Map<java.nio.file.Path,​java.util.List<T>> bucketsToCreate, java.nio.file.Path absBucketDir) throws java.io.IOException
      Create bucket files.
      Parameters:
      table - table to create bucket for. Should not change while running this could be a copy of the original table.
      bucketsToCreate - map with bucket name to table entries, representing the buckets to be created.
      absBucketDir - absolute path to the bucket dir, where bucket files should be put. It temp folders are to be used they should be created in this dir (for fast file move).
      Throws:
      java.io.IOException