parquet.hadoop.api.DelegatingReadSupport Maven / Gradle / Ivy
package parquet.hadoop.api;
import java.util.Map;
import org.apache.hadoop.conf.Configuration;
import parquet.io.api.RecordMaterializer;
import parquet.schema.MessageType;
/**
* Helps composing read supports
*
* @author Julien Le Dem
*
* @param
*/
public class DelegatingReadSupport extends ReadSupport {
private final ReadSupport delegate;
public DelegatingReadSupport(ReadSupport delegate) {
super();
this.delegate = delegate;
}
@Override
public ReadSupport.ReadContext init(InitContext context) {
return delegate.init(context);
}
@Override
public RecordMaterializer prepareForRead(
Configuration configuration,
Map keyValueMetaData,
MessageType fileSchema,
ReadSupport.ReadContext readContext) {
return delegate.prepareForRead(configuration, keyValueMetaData, fileSchema, readContext);
}
@Override
public String toString() {
return this.getClass().getName() + "(" + delegate.toString() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy