BytesWritable bw = ((BytesWritable) coi.getWritableConstantValue());
return bw.getLength();
} else if (oi instanceof WritableConstantBinaryObjectInspector) {
// writable constant byte arrays
WritableConstantBinaryObjectInspector wcboi = (WritableConstantBinaryObjectInspector) oi;
return wcboi.getWritableConstantValue().getLength();
} else if (oi instanceof WritableBinaryObjectInspector) {
// return the variable length from config
return configVarLen;
}