public static ToJsonFct getInstance(List<AbstractType<?>> argTypes) throws InvalidRequestException { if (argTypes.size() != 1) throw new InvalidRequestException(String.format("toJson() only accepts one argument (got %d)", argTypes.size())); AbstractType<?> fromType = argTypes.get(0); ToJsonFct func = instances.get(fromType); if (func == null) { func = new ToJsonFct(fromType); instances.put(fromType, func); } return func; }
public Selector.Factory newSelectorFactory(CFMetaData cfm, AbstractType<?> expectedType, List<ColumnDefinition> defs, VariableSpecifications boundNames) { SelectorFactories factories = SelectorFactories.createFactoriesAndCollectColumnDefinitions(args, null, cfm, defs, boundNames); Function fun = ToJsonFct.getInstance(factories.getReturnTypes()); return AbstractFunctionSelector.newFactory(fun, factories); }
public Selector.Factory newSelectorFactory(CFMetaData cfm, AbstractType<?> expectedType, List<ColumnDefinition> defs, VariableSpecifications boundNames) { SelectorFactories factories = SelectorFactories.createFactoriesAndCollectColumnDefinitions(args, null, cfm, defs, boundNames); Function fun = ToJsonFct.getInstance(factories.getReturnTypes()); return AbstractFunctionSelector.newFactory(fun, factories); }
public static ToJsonFct getInstance(List<AbstractType<?>> argTypes) throws InvalidRequestException { if (argTypes.size() != 1) throw new InvalidRequestException(String.format("toJson() only accepts one argument (got %d)", argTypes.size())); AbstractType<?> fromType = argTypes.get(0); ToJsonFct func = instances.get(fromType); if (func == null) { func = new ToJsonFct(fromType); instances.put(fromType, func); } return func; }
public Selector.Factory newSelectorFactory(CFMetaData cfm, AbstractType<?> expectedType, List<ColumnDefinition> defs, VariableSpecifications boundNames) { SelectorFactories factories = SelectorFactories.createFactoriesAndCollectColumnDefinitions(args, null, cfm, defs, boundNames); Function fun = ToJsonFct.getInstance(factories.getReturnTypes()); return AbstractFunctionSelector.newFactory(fun, factories); }
public static ToJsonFct getInstance(List<AbstractType<?>> argTypes) throws InvalidRequestException { if (argTypes.size() != 1) throw new InvalidRequestException(String.format("toJson() only accepts one argument (got %d)", argTypes.size())); AbstractType<?> fromType = argTypes.get(0); ToJsonFct func = instances.get(fromType); if (func == null) { func = new ToJsonFct(fromType); instances.put(fromType, func); } return func; }
public static ToJsonFct getInstance(List<AbstractType<?>> argTypes) throws InvalidRequestException { if (argTypes.size() != 1) throw new InvalidRequestException(String.format("toJson() only accepts one argument (got %d)", argTypes.size())); AbstractType<?> fromType = argTypes.get(0); ToJsonFct func = instances.get(fromType); if (func == null) { func = new ToJsonFct(fromType); instances.put(fromType, func); } return func; }