protected void readUniqueFieldsAnnotation() { if (this.pactContract.getCompilerHints() != null) { Set<FieldSet> uniqueFieldSets = pactContract.getCompilerHints().getUniqueFields(); if (uniqueFieldSets != null) { if (this.uniqueFields == null) { this.uniqueFields = new HashSet<FieldSet>(); } this.uniqueFields.addAll(uniqueFieldSets); } } }
protected void readUniqueFieldsAnnotation() { if (this.pactContract.getCompilerHints() != null) { Set<FieldSet> uniqueFieldSets = pactContract.getCompilerHints().getUniqueFields(); if (uniqueFieldSets != null) { if (this.uniqueFields == null) { this.uniqueFields = new HashSet<FieldSet>(); } this.uniqueFields.addAll(uniqueFieldSets); } } }
/** * Creates a new builder for the given configuration. * * @param contract The contract from which the the compiler hints are used. * If contract is null, new compiler hints are generated. * @param config The configuration into which the parameters will be written. */ protected AbstractConfigBuilder(Operator<?> contract, Configuration config) { super(config); if (contract != null) { this.hints = new RecordFormatCompilerHints(contract.getCompilerHints()); // initialize with 2 bytes length for the header (its actually 3, but one is skipped on the first field this.hints.addWidthRecordFormat(2); } else { this.hints = new RecordFormatCompilerHints(new CompilerHints()); } }
if (n.getPactContract().getCompilerHints() != null) { CompilerHints hints = n.getPactContract().getCompilerHints(); CompilerHints defaults = new CompilerHints();
if (n.getPactContract().getCompilerHints() != null) { CompilerHints hints = n.getPactContract().getCompilerHints(); CompilerHints defaults = new CompilerHints();
if (getPactContract() == null || getPactContract().getCompilerHints() == null) { return ; CompilerHints hints = getPactContract().getCompilerHints(); if (hints.getOutputSize() >= 0) { this.estimatedOutputSize = hints.getOutputSize();
if (getPactContract() == null || getPactContract().getCompilerHints() == null) { return ; CompilerHints hints = getPactContract().getCompilerHints(); if (hints.getOutputSize() >= 0) { this.estimatedOutputSize = hints.getOutputSize();