| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,7 +31,7 @@ | |||
| 31 | 31 | * Google BigQuery copy job configuration. A copy job copies an existing table to another new or | |
| 32 | 32 | * existing table. Copy job configurations have {@link JobConfiguration.Type#COPY} type. | |
| 33 | 33 | */ | |
| 34 | - public class CopyJobConfiguration extends JobConfiguration { | ||
| 34 | + public final class CopyJobConfiguration extends JobConfiguration { | ||
| 35 | 35 | ||
| 36 | 36 | private static final long serialVersionUID = 1140509641399762967L; | |
| 37 | 37 | ||
@@ -180,15 +180,14 @@ ToStringHelper toStringHelper() { | |||
| 180 | 180 | } | |
| 181 | 181 | ||
| 182 | 182 | @Override | |
| 183 | - public final boolean equals(Object obj) { | ||
| 183 | + public boolean equals(Object obj) { | ||
| 184 | 184 | return obj == this | |
| 185 | - || obj != null | ||
| 186 | - && obj.getClass().equals(CopyJobConfiguration.class) | ||
| 185 | + || obj instanceof CopyJobConfiguration | ||
| 187 | 186 | && baseEquals((CopyJobConfiguration) obj); | |
| 188 | 187 | } | |
| 189 | 188 | ||
| 190 | 189 | @Override | |
| 191 | - public final int hashCode() { | ||
| 190 | + public int hashCode() { | ||
| 192 | 191 | return Objects.hash(baseHashCode(), sourceTables, destinationTable, createDisposition, | |
| 193 | 192 | writeDisposition); | |
| 194 | 193 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ | |||
| 30 | 30 | * Cloud Storage. The extract destination provided as URIs that point to objects in Google Cloud | |
| 31 | 31 | * Storage. Extract job configurations have {@link JobConfiguration.Type#EXTRACT} type. | |
| 32 | 32 | */ | |
| 33 | - public class ExtractJobConfiguration extends JobConfiguration { | ||
| 33 | + public final class ExtractJobConfiguration extends JobConfiguration { | ||
| 34 | 34 | ||
| 35 | 35 | private static final long serialVersionUID = 4147749733166593761L; | |
| 36 | 36 | ||
@@ -210,15 +210,14 @@ ToStringHelper toStringHelper() { | |||
| 210 | 210 | } | |
| 211 | 211 | ||
| 212 | 212 | @Override | |
| 213 | - public final boolean equals(Object obj) { | ||
| 213 | + public boolean equals(Object obj) { | ||
| 214 | 214 | return obj == this | |
| 215 | - || obj != null | ||
| 216 | - && obj.getClass().equals(ExtractJobConfiguration.class) | ||
| 215 | + || obj instanceof ExtractJobConfiguration | ||
| 217 | 216 | && baseEquals((ExtractJobConfiguration) obj); | |
| 218 | 217 | } | |
| 219 | 218 | ||
| 220 | 219 | @Override | |
| 221 | - public final int hashCode() { | ||
| 220 | + public int hashCode() { | ||
| 222 | 221 | return Objects.hash(baseHashCode(), sourceTable, destinationUris, printHeader, fieldDelimiter, | |
| 223 | 222 | format, compression); | |
| 224 | 223 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ | |||
| 30 | 30 | * table. Data is provided as URIs that point to objects in Google Cloud Storage. Load job | |
| 31 | 31 | * configurations have {@link JobConfiguration.Type#LOAD} type. | |
| 32 | 32 | */ | |
| 33 | - public class LoadJobConfiguration extends JobConfiguration implements LoadConfiguration { | ||
| 33 | + public final class LoadJobConfiguration extends JobConfiguration implements LoadConfiguration { | ||
| 34 | 34 | ||
| 35 | 35 | private static final long serialVersionUID = -2673554846792429829L; | |
| 36 | 36 | ||
@@ -268,15 +268,14 @@ ToStringHelper toStringHelper() { | |||
| 268 | 268 | } | |
| 269 | 269 | ||
| 270 | 270 | @Override | |
| 271 | - public final boolean equals(Object obj) { | ||
| 271 | + public boolean equals(Object obj) { | ||
| 272 | 272 | return obj == this | |
| 273 | - || obj != null | ||
| 274 | - && obj.getClass().equals(LoadJobConfiguration.class) | ||
| 273 | + || obj instanceof LoadJobConfiguration | ||
| 275 | 274 | && baseEquals((LoadJobConfiguration) obj); | |
| 276 | 275 | } | |
| 277 | 276 | ||
| 278 | 277 | @Override | |
| 279 | - public final int hashCode() { | ||
| 278 | + public int hashCode() { | ||
| 280 | 279 | return Objects.hash(baseHashCode(), sourceUris); | |
| 281 | 280 | } | |
| 282 | 281 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,10 +35,23 @@ | |||
| 35 | 35 | * Google BigQuery Query Job configuration. A Query Job runs a query against BigQuery data. Query | |
| 36 | 36 | * job configurations have {@link JobConfiguration.Type#QUERY} type. | |
| 37 | 37 | */ | |
| 38 | - public class QueryJobConfiguration extends JobConfiguration { | ||
| 38 | + public final class QueryJobConfiguration extends JobConfiguration { | ||
| 39 | 39 | ||
| 40 | 40 | private static final long serialVersionUID = -1108948249081804890L; | |
| 41 | 41 | ||
| 42 | + private final String query; | ||
| 43 | + private final TableId destinationTable; | ||
| 44 | + private final Map<String, ExternalTableDefinition> tableDefinitions; | ||
| 45 | + private final List<UserDefinedFunction> userDefinedFunctions; | ||
| 46 | + private final CreateDisposition createDisposition; | ||
| 47 | + private final WriteDisposition writeDisposition; | ||
| 48 | + private final DatasetId defaultDataset; | ||
| 49 | + private final Priority priority; | ||
| 50 | + private final Boolean allowLargeResults; | ||
| 51 | + private final Boolean useQueryCache; | ||
| 52 | + private final Boolean flattenResults; | ||
| 53 | + private final Boolean dryRun; | ||
| 54 | + | ||
| 42 | 55 | /** | |
| 43 | 56 | * Priority levels for a query. If not specified the priority is assumed to be | |
| 44 | 57 | * {@link Priority#INTERACTIVE}. | |
@@ -59,19 +72,6 @@ public enum Priority { | |||
| 59 | 72 | BATCH | |
| 60 | 73 | } | |
| 61 | 74 | ||
| 62 | - private final String query; | ||
| 63 | - private final TableId destinationTable; | ||
| 64 | - private final Map<String, ExternalTableDefinition> tableDefinitions; | ||
| 65 | - private final List<UserDefinedFunction> userDefinedFunctions; | ||
| 66 | - private final CreateDisposition createDisposition; | ||
| 67 | - private final WriteDisposition writeDisposition; | ||
| 68 | - private final DatasetId defaultDataset; | ||
| 69 | - private final Priority priority; | ||
| 70 | - private final Boolean allowLargeResults; | ||
| 71 | - private final Boolean useQueryCache; | ||
| 72 | - private final Boolean flattenResults; | ||
| 73 | - private final Boolean dryRun; | ||
| 74 | - | ||
| 75 | 75 | public static final class Builder | |
| 76 | 76 | extends JobConfiguration.Builder<QueryJobConfiguration, Builder> { | |
| 77 | 77 | ||
@@ -449,15 +449,14 @@ ToStringHelper toStringHelper() { | |||
| 449 | 449 | } | |
| 450 | 450 | ||
| 451 | 451 | @Override | |
| 452 | - public final boolean equals(Object obj) { | ||
| 452 | + public boolean equals(Object obj) { | ||
| 453 | 453 | return obj == this | |
| 454 | - || obj != null | ||
| 455 | - && obj.getClass().equals(QueryJobConfiguration.class) | ||
| 454 | + || obj instanceof QueryJobConfiguration | ||
| 456 | 455 | && baseEquals((QueryJobConfiguration) obj); | |
| 457 | 456 | } | |
| 458 | 457 | ||
| 459 | 458 | @Override | |
| 460 | - public final int hashCode() { | ||
| 459 | + public int hashCode() { | ||
| 461 | 460 | return Objects.hash(baseHashCode(), allowLargeResults, createDisposition, destinationTable, | |
| 462 | 461 | defaultDataset, flattenResults, priority, query, tableDefinitions, useQueryCache, | |
| 463 | 462 | userDefinedFunctions, writeDisposition, dryRun); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments