public BCF2Type getDynamicType(final Object value) { throw new IllegalStateException("BUG: cannot get dynamic type for statically typed BCF2 field " + getField()); }
public BCF2Type getDynamicType(final Object value) { throw new IllegalStateException("BUG: cannot get dynamic type for statically typed BCF2 field " + getField()); }
private BCF2FieldEncoder(final VCFCompoundHeaderLine headerLine, final Map<String, Integer> dict, final BCF2Type staticType) { this.headerLine = headerLine; this.staticType = staticType; final Integer offset = dict.get(getField()); if ( offset == null ) throw new IllegalStateException("Format error: could not find string " + getField() + " in header as required by BCF"); this.dictionaryOffset = offset; dictionaryOffsetType = BCF2Utils.determineIntegerType(offset); }
private BCF2FieldEncoder(final VCFCompoundHeaderLine headerLine, final Map<String, Integer> dict, final BCF2Type staticType) { this.headerLine = headerLine; this.staticType = staticType; final Integer offset = dict.get(getField()); if ( offset == null ) throw new IllegalStateException("Format error: could not find string " + getField() + " in header as required by BCF"); this.dictionaryOffset = offset; dictionaryOffsetType = BCF2Utils.determineIntegerType(offset); }
@Requires({"headerLine != null", "dict != null"}) private BCF2FieldEncoder(final VCFCompoundHeaderLine headerLine, final Map<String, Integer> dict, final BCF2Type staticType) { this.headerLine = headerLine; this.staticType = staticType; final Integer offset = dict.get(getField()); if ( offset == null ) throw new IllegalStateException("Format error: could not find string " + getField() + " in header as required by BCF"); this.dictionaryOffset = offset; dictionaryOffsetType = BCF2Utils.determineIntegerType(offset); }
@Override public String toString() { return "BCF2FieldEncoder for " + getField() + " with count " + getCountType() + " encoded with " + getClass().getSimpleName(); }
@Override public String toString() { return "BCF2FieldEncoder for " + getField() + " with count " + getCountType() + " encoded with " + getClass().getSimpleName(); }
@Override public String toString() { return "BCF2FieldEncoder for " + getField() + " with count " + getCountType() + " encoded with " + getClass().getSimpleName(); }
protected String getField() { return getFieldEncoder().getField(); }
protected String getField() { return getFieldEncoder().getField(); }
@Requires("isDynamicallyTyped()") @Ensures("result != null") public BCF2Type getDynamicType(final Object value) { throw new IllegalStateException("BUG: cannot get dynamic type for statically typed BCF2 field " + getField()); }
@Ensures("result != null") protected String getField() { return getFieldEncoder().getField(); }