Class BucketCreatorGorPipe<T extends org.gorpipe.gor.table.BucketableTableEntry>

java.lang.Object
org.gorpipe.gor.manager.BucketCreatorGorPipe<T>
All Implemented Interfaces:
BucketCreator<T>

public class BucketCreatorGorPipe<T extends org.gorpipe.gor.table.BucketableTableEntry>
extends java.lang.Object
implements BucketCreator<T>
Helper class to create bucket file from bucket description.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static int DEFAULT_NUMBER_WORKERS  
  • Constructor Summary

    Constructors 
    Constructor Description
    BucketCreatorGorPipe()  
    BucketCreatorGorPipe​(int workers)  
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • createBuckets

      public 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
      Description copied from interface: BucketCreator
      Create bucket files.
      Specified by:
      createBuckets in interface BucketCreator<T extends org.gorpipe.gor.table.BucketableTableEntry>
      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