/** * Returns the list of partition keys. * @return list of partition keys */ @ApiModelProperty(value = "List of partition key names") @JsonProperty @SuppressWarnings("checkstyle:methodname") public List<String> getPartition_keys() { if (fields == null) { return null; } else if (fields.isEmpty()) { return Collections.emptyList(); } final List<String> keys = new LinkedList<>(); for (FieldDto field : fields) { if (field.isPartition_key()) { keys.add(field.getName()); } } return keys; }
/** * Returns the list of partition keys. * @return list of partition keys */ @ApiModelProperty(value = "List of partition key names") @JsonProperty @SuppressWarnings("checkstyle:methodname") public List<String> getPartition_keys() { if (fields == null) { return null; } else if (fields.isEmpty()) { return Collections.emptyList(); } final List<String> keys = new LinkedList<>(); for (FieldDto field : fields) { if (field.isPartition_key()) { keys.add(field.getName()); } } return keys; }
String filter = "(" + fieldDto.getName() + "="; try { filter += Long.parseLong(partitionValueFilter) + ")";
String filter = "(" + fieldDto.getName() + "="; try { filter += Long.parseLong(partitionValueFilter) + ")";
protected ColumnMetadata fromFieldDto(final FieldDto fieldDto, final TypeManager typeManager) { String type = fieldDto.getType(); if (type == null) { type = fieldDto.getSource_type(); } return new ColumnMetadata( fieldDto.getName(), typeConverter.get().toType(type, typeManager), fieldDto.isPartition_key(), fieldDto.getComment(), false ); }
private FieldSchema metacatToHiveField(final FieldDto fieldDto) { final FieldSchema result = new FieldSchema(); result.setName(fieldDto.getName()); result.setType(fieldDto.getType()); result.setComment(fieldDto.getComment()); return result; }
private FieldSchema metacatToHiveField(final FieldDto fieldDto) { final FieldSchema result = new FieldSchema(); result.setName(fieldDto.getName()); result.setType(fieldDto.getType()); result.setComment(fieldDto.getComment()); return result; }
private FieldSchema metacatToHiveField(final FieldDto fieldDto) { final FieldSchema result = new FieldSchema(); result.setName(fieldDto.getName()); result.setType(fieldDto.getType()); result.setComment(fieldDto.getComment()); return result; }