public static class BCF2FieldEncoder.IntArray extends BCF2FieldEncoder
BCF2FieldEncoder.AtomicInt, BCF2FieldEncoder.Flag, BCF2FieldEncoder.Float, BCF2FieldEncoder.GenericInts, BCF2FieldEncoder.IntArray, BCF2FieldEncoder.StringOrCharacter| Constructor and Description |
|---|
IntArray(VCFCompoundHeaderLine headerLine,
Map<String,Integer> dict) |
| Modifier and Type | Method and Description |
|---|---|
void |
encodeValue(BCF2Encoder encoder,
Object value,
BCF2Type type,
int minValues)
Key abstract method that should encode a value of the given type into the encoder.
|
BCF2Type |
getDynamicType(Object value) |
protected int |
numElementsFromValue(Object value)
Given a value, return the number of elements we will encode for it.
|
getCountType, getField, getStaticType, getType, hasConstantNumElements, hasContextDeterminedNumElements, hasValueDeterminedNumElements, isDynamicallyTyped, isStaticallyTyped, numElements, numElements, numElements, numElements, toString, writeFieldKeypublic IntArray(VCFCompoundHeaderLine headerLine, Map<String,Integer> dict)
protected int numElementsFromValue(Object value)
BCF2FieldEncodernumElementsFromValue in class BCF2FieldEncoderpublic BCF2Type getDynamicType(Object value)
getDynamicType in class BCF2FieldEncoderpublic void encodeValue(BCF2Encoder encoder, Object value, BCF2Type type, int minValues) throws IOException
BCF2FieldEncoderencodeValue in class BCF2FieldEncoderIOException