本文整理汇总了Java中org.apache.drill.exec.physical.base.AbstractWriter类的典型用法代码示例。如果您正苦于以下问题:Java AbstractWriter类的具体用法?Java AbstractWriter怎么用?Java AbstractWriter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AbstractWriter类属于org.apache.drill.exec.physical.base包,在下文中一共展示了AbstractWriter类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getWriter
import org.apache.drill.exec.physical.base.AbstractWriter; //导入依赖的package包/类
@Override
public Writer getWriter(PhysicalOperator child) throws IOException {
if (!(formatPlugin.supportsAutoPartitioning() ||
partitionColumns == null || partitionColumns.size() == 0)) {
throw UserException.unsupportedError().message(String.format("%s format does not support auto-partitioning.",
formatPlugin.getName())).build(logger);
}
AbstractWriter writer = formatPlugin.getWriter(child, location, partitionColumns);
writer.setStorageStrategy(storageStrategy);
return writer;
}
示例2: getWriter
import org.apache.drill.exec.physical.base.AbstractWriter; //导入依赖的package包/类
@Override
public AbstractWriter getWriter(PhysicalOperator child, String location, List<String> partitionColumns) throws IOException {
return new EasyWriter(child, location, partitionColumns, this);
}
示例3: getWriter
import org.apache.drill.exec.physical.base.AbstractWriter; //导入依赖的package包/类
@Override
public AbstractWriter getWriter(PhysicalOperator child, String location, List<String> partitionColumns) throws IOException {
return new ParquetWriter(child, location, partitionColumns, this);
}
示例4: getWriter
import org.apache.drill.exec.physical.base.AbstractWriter; //导入依赖的package包/类
@Override
public AbstractWriter getWriter(PhysicalOperator child, String location,
List<String> partitionColumns) throws IOException {
throw new UnsupportedOperationException();
}
示例5: getWriter
import org.apache.drill.exec.physical.base.AbstractWriter; //导入依赖的package包/类
public AbstractWriter getWriter(PhysicalOperator child, String location, List<String> partitionColumns) throws IOException;