|
| 1 | +package com.alibaba.graphscope.groot.common.config; |
| 2 | + |
| 3 | +public class DataLoadConfig { |
| 4 | + |
| 5 | + // Get property |
| 6 | + |
| 7 | + /** universal configurations **/ |
| 8 | + public static final String GRAPH_ENDPOINT = "graph.endpoint"; |
| 9 | + |
| 10 | + public static final String COLUMN_MAPPING_CONFIG = "column.mapping.config"; |
| 11 | + |
| 12 | + public static final String LOAD_AFTER_BUILD = "load.after.build"; |
| 13 | + |
| 14 | + public static final String SPLIT_SIZE = "split.size"; |
| 15 | + |
| 16 | + public static final String UNIQUE_PATH = "unique.path"; // generated automatically for each task |
| 17 | + public static final String USER_NAME = "auth.username"; |
| 18 | + public static final String PASS_WORD = "auth.password"; |
| 19 | + |
| 20 | + /** job on HDFS configurations **/ |
| 21 | + |
| 22 | + // Input and output |
| 23 | + public static final String INPUT_PATH = "input.path"; |
| 24 | + |
| 25 | + public static final String OUTPUT_PATH = "output.path"; |
| 26 | + public static final String SEPARATOR = "separator"; |
| 27 | + public static final String SKIP_HEADER = "skip.header"; |
| 28 | + public static final String LDBC_CUSTOMIZE = "ldbc.customize"; |
| 29 | + /* end */ |
| 30 | + |
| 31 | + /** job on ODPS configurations **/ |
| 32 | + public static final String DATA_SINK_TYPE = "data.sink.type"; // hdfs, oss, volume |
| 33 | + // The table format is `project.table` or `table`; |
| 34 | + // For partitioned table, the format is `project.table|p1=1/p2=2` or `table|p1=1/p2=2` |
| 35 | + public static final String OUTPUT_TABLE = "output.table"; // a dummy table |
| 36 | + /* end */ |
| 37 | + |
| 38 | + // Set property |
| 39 | + public static final String SCHEMA_JSON = "schema.json"; |
| 40 | + public static final String COLUMN_MAPPINGS = "column.mappings"; |
| 41 | + public static final String META_INFO = "meta.info"; |
| 42 | + |
| 43 | + public static final String META_FILE_NAME = "META"; |
| 44 | + |
| 45 | + /** OSS configurations **/ |
| 46 | + public static final String OSS_ENDPOINT = "oss.endpoint"; |
| 47 | + |
| 48 | + public static final String OSS_ACCESS_ID = "oss.access.id"; |
| 49 | + public static final String OSS_ACCESS_KEY = "oss.access.key"; |
| 50 | + |
| 51 | + public static final String OSS_BUCKET_NAME = "oss.bucket.name"; |
| 52 | + public static final String OSS_OBJECT_NAME = "oss.object.name"; |
| 53 | + public static final String OSS_INFO_URL = "oss.info.url"; |
| 54 | + /* end */ |
| 55 | + |
| 56 | + /** ODPS Volume configurations **/ |
| 57 | + public static final String ODPS_VOLUME_PROJECT = "odps.volume.project"; |
| 58 | + |
| 59 | + public static final String ODPS_VOLUME_NAME = "odps.volume.name"; |
| 60 | + public static final String ODPS_VOLUME_PARTSPEC = "odps.volume.partspec"; |
| 61 | + |
| 62 | + public static final String ODPS_ACCESS_ID = "odps.access.id"; |
| 63 | + public static final String ODPS_ACCESS_KEY = "odps.access.key"; |
| 64 | + public static final String ODPS_ENDPOINT = "odps.endpoint"; |
| 65 | + /* end */ |
| 66 | + |
| 67 | +} |
0 commit comments