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

Method build

core/src/main/java/io/ddf/Factor.java:289–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287 }
288
289 public Factor<?> build() throws DDFException {
290 Factor<?> factor;
291 switch (this.getType()) {
292 case DOUBLE:
293 factor = new Factor<Double>(this);
294 break;
295 case FLOAT:
296 factor = new Factor<Float>(this);
297 break;
298 case INT:
299 factor = new Factor<Integer>(this);
300 break;
301 case BIGINT:
302 factor = new Factor<Long>(this);
303 break;
304 case BOOLEAN:
305 factor = new Factor<Boolean>(this);
306 break;
307 case STRING:
308 factor = new Factor<String>(this);
309 break;
310 case TIMESTAMP:
311 factor = new Factor<Timestamp>(this);
312 break;
313 case BLOB:
314 default:
315 factor = new Factor<Object>(this);
316 break;
317 }
318 return factor;
319 }
320 }
321}

Callers 7

testBasicCopyForS3Method · 0.80
testDelimMethod · 0.80
testNullMethod · 0.80
copyFromMethod · 0.80
DDFCacheMethod · 0.80
setAsFactorMethod · 0.80

Calls 1

getTypeMethod · 0.95

Tested by 4

testBasicCopyForS3Method · 0.64
testDelimMethod · 0.64
testNullMethod · 0.64