Refine search
into.putBoolean(((Boolean) value).booleanValue()); } else if (value instanceof Byte) { into.putByte(((Byte) value).byteValue()); } else if (value instanceof Double) { into.putDouble(((Double) value).doubleValue()); into.putFloat(((Float) value).floatValue()); } else if (value instanceof Integer) { into.putInt(((Integer) value).intValue()); } else if (value instanceof BigInteger) { byte[] bigBytes = ((BigInteger) value).toByteArray(); into.putBytes(bigBytes); } else if (value instanceof Long) { into.putLong(((Long) value).longValue()); } else if (value.getClass().isArray()) { int length = Array.getLength(value); into.putInt(length); for (int i = 0; i < length; i++) { Object arrayElem = Array.get(value, i); long most = uuid.getMostSignificantBits(); long least = uuid.getLeastSignificantBits(); into.putLong(most); into.putLong(least); } else if (value instanceof Geometry) { GeometryFunnel.funnel((Geometry) value, into);
break; case INTEGER: into.putInt(((Integer) value).intValue()); break; case LONG: into.putLong(((Long) value).longValue()); break; case FLOAT: case CHAR_ARRAY: { int length = Array.getLength(value); into.putInt(length); for (int i = 0; i < length; i++) { Object arrayElem = Array.get(value, i); long most = uuid.getMostSignificantBits(); long least = uuid.getLeastSignificantBits(); into.putLong(most); into.putLong(least); byte[] bigBytes = unscaledValue.toByteArray(); into.putBytes(bigBytes); into.putInt(scale);
break; case INTEGER: into.putInt(((Integer) value).intValue()); break; case LONG: into.putLong(((Long) value).longValue()); break; case FLOAT: case CHAR_ARRAY: { int length = Array.getLength(value); into.putInt(length); for (int i = 0; i < length; i++) { Object arrayElem = Array.get(value, i); long most = uuid.getMostSignificantBits(); long least = uuid.getLeastSignificantBits(); into.putLong(most); into.putLong(least); byte[] bigBytes = unscaledValue.toByteArray(); into.putBytes(bigBytes); into.putInt(scale);