Interface InputDataInfoProvider

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
DefaultInputDataInfoProvider, KafkaInputDataInfoProvider

public interface InputDataInfoProvider extends Closeable
This interface lets users get input data information
  • Method Details

    • validateInputAndGetInfo

      InputDataInfoProvider.InputDataInfo validateInputAndGetInfo(String inputUri) throws Exception
      Throws:
      Exception
    • initZstdConfig

      void initZstdConfig(int numFiles)
    • loadZstdTrainingSamples

      static void loadZstdTrainingSamples(VeniceRecordIterator recordIterator, PushJobZstdConfig pushJobZstdConfig)
      This function loads training samples from recordReader abstraction for building the Zstd dictionary.
      Parameters:
      recordIterator - The data accessor of input records.
    • trainZstdDictionary

      byte[] trainZstdDictionary()
    • extractAvroSubSchema

      org.apache.avro.Schema extractAvroSubSchema(org.apache.avro.Schema origin, String fieldName)
    • getInputLastModificationTime

      long getInputLastModificationTime(String inputUri) throws IOException
      Throws:
      IOException