/** * Sets the new value of "partitionValues" (any previous value will be replaced) * * @param partitionValues * New value of the "partitionValues" property. */ public HivePartitionDto.Builder<_B> withPartitionValues(String... partitionValues) { withPartitionValues(Arrays.asList(partitionValues)); return this; }
/** * Sets the new value of "partitionValues" (any previous value will be replaced) * * @param partitionValues * New value of the "partitionValues" property. */ public HivePartitionDto.Builder<_B> withPartitionValues(final Iterable<? extends String> partitionValues) { if (this.partitionValues!= null) { this.partitionValues.clear(); } return addPartitionValues(partitionValues); }
expectedHivePartitions = Arrays.asList(HivePartitionDto.builder().withPath("").withPartitionValues(Arrays.asList(PARTITION_VALUE)).build()); resultHivePartitions = hive13DdlGenerator .getHivePartitions(businessObjectDataKey, autoDiscoverableSubPartitionColumns, TEST_S3_KEY_PREFIX, storageFilePaths, businessObjectDataEntity, storageFilePaths = getStorageFilePaths(Arrays.asList("/COLUMN1=111/COLUMN2=222/file.dat", "/column1=aa/column2=bb/")); expectedHivePartitions = Arrays .asList(HivePartitionDto.builder().withPath("/COLUMN1=111/COLUMN2=222").withPartitionValues(Arrays.asList(PARTITION_VALUE, "111", "222")).build(), HivePartitionDto.builder().withPath("/column1=aa/column2=bb").withPartitionValues(Arrays.asList(PARTITION_VALUE, "aa", "bb")).build()); resultHivePartitions = hive13DdlGenerator .getHivePartitions(businessObjectDataKey, autoDiscoverableSubPartitionColumns, TEST_S3_KEY_PREFIX, storageFilePaths, businessObjectDataEntity,
public<_B >HivePartitionDto.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new HivePartitionDto.Builder<_B>(_parentBuilder, this, true); }
public<_B >HivePartitionDto.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new HivePartitionDto.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); }
public static HivePartitionDto.Builder<Void> builder() { return new HivePartitionDto.Builder<Void>(null, null, false); }
public static<_B >HivePartitionDto.Builder<_B> copyOf(final HivePartitionDto _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final HivePartitionDto.Builder<_B> _newBuilder = new HivePartitionDto.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; }
public static<_B >HivePartitionDto.Builder<_B> copyOf(final HivePartitionDto _other) { final HivePartitionDto.Builder<_B> _newBuilder = new HivePartitionDto.Builder<_B>(null, null, false); _other.copyTo(_newBuilder); return _newBuilder; }
/** * Adds the given items to the value of "partitionValues" * * @param partitionValues * Items to add to the value of the "partitionValues" property */ public HivePartitionDto.Builder<_B> addPartitionValues(String... partitionValues) { addPartitionValues(Arrays.asList(partitionValues)); return this; }
@Override public HivePartitionDto build() { if (_storedValue == null) { return this.init(new HivePartitionDto()); } else { return ((HivePartitionDto) _storedValue); } }