public static SchemaPath getSimplePath(String name) { return getCompoundPath(name); }
public Key(String[] name) { this.name = SchemaPath.getCompoundPath(name); }
private SchemaPath toFieldName(String[] paths) { return SchemaPath.getCompoundPath(paths); }
public static SchemaPath getSimplePath(String name) { return getCompoundPath(name); }
/** * Check if one of the fields involved in the filter is an array (used in DRILL_6259_test_data). * * @return true if one at least is an array, false otherwise. */ private static boolean isRepeated(Set<SchemaPath> fields, ParquetTableMetadataBase parquetTableMetadata, List<? extends ColumnMetadata> columnMetadataList) { final Map<SchemaPath, ColumnMetadata> columnMetadataMap = new HashMap<>(); for (final ColumnMetadata columnMetadata : columnMetadataList) { SchemaPath schemaPath = SchemaPath.getCompoundPath(columnMetadata.getName()); columnMetadataMap.put(schemaPath, columnMetadata); } for (final SchemaPath field : fields) { ColumnMetadata columnMetadata = columnMetadataMap.get(field.getUnIndexed()); if (columnMetadata != null && parquetTableMetadata.getRepetitionLevel(columnMetadata.getName()) >= 1) { return true; } } return false; }
final SchemaPath schemaPath = SchemaPath.getCompoundPath(column.getPath()); if (fields.contains(schemaPath)) { columnDescMap.put(schemaPath, column); final SchemaPath schemaPath = SchemaPath.getCompoundPath(colMetaData.getPath().toArray()); if (fields.contains(schemaPath)) { columnChkMetaMap.put(schemaPath, colMetaData);
String pathSeg = f.getName().replaceAll("`", ""); final String[] segs = pathSeg.split("\\."); path = SchemaPath.getCompoundPath(segs); indexContext.sortExprs.add(path);
long rowCount = rowGroup.getRowCount(); for (ColumnMetadata column : rowGroup.getColumns()) { SchemaPath schemaPath = SchemaPath.getCompoundPath(column.getName()); MutableLong emptyCount = new MutableLong(); MutableLong previousCount = columnValueCounts.putIfAbsent(schemaPath, emptyCount);
String[] pathSegments = new String[segments.size()]; segments.toArray(pathSegments); SchemaPath modifiedSchemaPath = SchemaPath.getCompoundPath(pathSegments); modifiedColumns.add(modifiedSchemaPath); for (ColumnDescriptor columnDescriptor : schemaColumns) { String[] schemaColDesc = Arrays.copyOf(columnDescriptor.getPath(), columnDescriptor.getPath().length); SchemaPath schemaPath = SchemaPath.getCompoundPath(schemaColDesc); schemaPaths.add(schemaPath);
long rowCount, ParquetTableMetadataBase parquetTableMetadata) { SchemaPath schemaPath = SchemaPath.getCompoundPath(columnMetadata.getName()); final PrimitiveType.PrimitiveTypeName primitiveType; final OriginalType originalType;
schema.getPaths(); for (String[] path : schema.getPaths()) { colTypeInfoMap.put(SchemaPath.getCompoundPath(path), getColTypeInfo(schema, schema, path, 0)); Statistics<?> stats = col.getStatistics(); String[] columnName = col.getPath().toArray(); SchemaPath columnSchemaName = SchemaPath.getCompoundPath(columnName); ColTypeInfo colTypeInfo = colTypeInfoMap.get(columnSchemaName);
SchemaPath schemaPath = SchemaPath.getCompoundPath(columnMetadata.getName()); columnMetadataMap.put(schemaPath, columnMetadata);
String pathSeg = f.getName().replaceAll("`", ""); final String[] segs = pathSeg.split("\\."); path = SchemaPath.getCompoundPath(segs); indexContext.getSortExprs().add(path);