/** * Set the class loader to be used by toType(), getRawType(), etc. * @param loader the class loader to use */ public void setClassLoader(ClassLoader loader) { this.classLoader = loader; // Note that this class is immutable after construction, except for the class loader // Thus we can pass down the loader to the owner and parameter types once now, no need to pass it down in toType() if (this.enclosingType != null) { this.enclosingType.setClassLoader(loader); } if (this.parameters != null) { for (TypeRepresentation param: this.parameters) { param.setClassLoader(loader); } } }
public ObjectStoreDataset(String name, KeyValueTable kvTable, TypeRepresentation typeRep, Schema schema, @Nullable ClassLoader classLoader) { super(name, kvTable); this.kvTable = kvTable; this.typeRep = typeRep; this.typeRep.setClassLoader(classLoader); this.schema = schema; this.datumWriter = new ReflectionDatumWriter<>(this.schema); }
public ObjectStoreDataset(String name, KeyValueTable kvTable, TypeRepresentation typeRep, Schema schema, @Nullable ClassLoader classLoader) { super(name, kvTable); this.kvTable = kvTable; this.typeRep = typeRep; this.typeRep.setClassLoader(classLoader); this.schema = schema; this.datumWriter = new ReflectionDatumWriter<>(this.schema); }
public ObjectMappedTableDataset(String name, Table table, TypeRepresentation typeRep, Schema objectSchema, @Nullable ClassLoader classLoader) { super(name, table); this.table = table; this.objectSchema = objectSchema; this.typeRepresentation = typeRep; this.typeRepresentation.setClassLoader(classLoader); this.putWriter = new ReflectionPutWriter<>(objectSchema); }
public ObjectMappedTableDataset(String name, Table table, TypeRepresentation typeRep, Schema objectSchema, @Nullable ClassLoader classLoader) { super(name, table); this.table = table; this.objectSchema = objectSchema; this.typeRepresentation = typeRep; this.typeRepresentation.setClassLoader(classLoader); this.putWriter = new ReflectionPutWriter<>(objectSchema); }