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

Method initialize

core/src/main/java/io/ddf/Vector.java:73–81  ·  view source on GitHub ↗
(String name, T[] data, String engineName)

Source from the content-addressed store, hash-verified

71 }
72
73 private void initialize(String name, T[] data, String engineName) throws DDFException {
74 if (data == null || data.length == 0) throw new DDFException("Cannot initialize a null or zero-length Vector");
75
76 DDF newDDF = DDFManager.get(DDFManager.EngineType.fromString(engineName)) //
77 .newDDF(null, (Object) data, new Class[] { Array.class, this.getParameterizedType() }, null /* namespace */, name, //
78 new Schema(name, String.format("%s %s", name, this.getParameterizedType().getSimpleName())));
79
80 this.initialize(newDDF, name);
81 }
82
83 private void initialize(DDF theDDF, String name) {
84 this.setDDF(theDDF);

Callers 1

VectorMethod · 0.95

Calls 6

getMethod · 0.95
getParameterizedTypeMethod · 0.95
setDDFMethod · 0.95
setDDFColumnNameMethod · 0.95
newDDFMethod · 0.45
fromStringMethod · 0.45

Tested by

no test coverage detected