MCPcopy Create free account
hub / github.com/ddf-project/DDF / validateSchema

Method validateSchema

core/src/main/java/io/ddf/content/Schema.java:82–86  ·  view source on GitHub ↗
(Schema schema)

Source from the content-addressed store, hash-verified

80 }
81
82 public static void validateSchema(Schema schema) throws DDFException {
83 if(schema != null && schema.getColumns() != null) {
84 validateColumnNames(schema.getColumnNames());
85 }
86 }
87
88 private static void validateColumnNames(List<String> names) throws DDFException {
89 Set<String> columnSet = new HashSet<String>();

Callers 3

testDuplicatedColumnMethod · 0.95
initializeMethod · 0.95

Calls 3

validateColumnNamesMethod · 0.95
getColumnsMethod · 0.65
getColumnNamesMethod · 0.45

Tested by 2

testDuplicatedColumnMethod · 0.76