@Override protected String toSqlType(Type type) { if (VARBINARY.equals(type)) { return "bytea"; } return super.toSqlType(type); } }
"Expected value %d to be an instance of String or byte[], but is a %s", i, value.getClass().getSimpleName()); else if (VARBINARY.equals(type)) { checkArgument(value instanceof Slice, "Expected value %d to be an instance of Slice, but is a %s", i, value.getClass().getSimpleName());
values.add(type.getSlice(block, position).toStringUtf8()); else if (VARBINARY.equals(type)) { values.add(type.getSlice(block, position).toByteBuffer());
return value; else if (VARBINARY.equals(type)) { return value;
statement.setString(parameter, type.getSlice(block, position).toStringUtf8()); else if (VARBINARY.equals(type)) { statement.setBytes(parameter, type.getSlice(block, position).getBytes());
statement.setString(parameter, type.getSlice(block, position).toStringUtf8()); else if (VARBINARY.equals(type)) { statement.setBytes(parameter, type.getSlice(block, position).getBytes());
return ImmutableList.of(new OrcType(OrcTypeKind.CHAR, ((CharType) type).getLength())); if (VARBINARY.equals(type)) { return ImmutableList.of(new OrcType(OrcTypeKind.BINARY));
return ImmutableList.of(new OrcType(OrcTypeKind.CHAR, ((CharType) type).getLength())); if (VARBINARY.equals(type)) { return ImmutableList.of(new OrcType(OrcTypeKind.BINARY));
return stringEncoding(type); if (VARBINARY.equals(type)) { return binaryEncoding(type);
type, HiveChar.MAX_CHAR_LENGTH)); if (VARBINARY.equals(type)) { return HIVE_BINARY.getTypeInfo();
else if (VARBINARY.equals(type)) { row.addBinary(destChannel, type.getSlice(block, position).toByteBuffer());
return "datetime"; if (VARBINARY.equals(type)) { return "mediumblob";
cursor.getLong(columnIndex); else if (isVarcharType(type) || VARBINARY.equals(type)) { try { cursor.getSlice(columnIndex);
parseDoubleColumn(column); else if (isVarcharType(type) || VARBINARY.equals(type)) { parseStringColumn(column);
return new String(((Slice) fieldFromCursor).getBytes()); if (VARBINARY.equals(type)) { return new SqlVarbinary(((Slice) fieldFromCursor).getBytes());
return new String(((Slice) fieldFromCursor).getBytes()); if (VARBINARY.equals(type)) { return new SqlVarbinary(((Slice) fieldFromCursor).getBytes());
return cursor.getDouble(field); else if (isVarcharType(type) || isCharType(type) || VARBINARY.equals(type)) { return cursor.getSlice(field);
return cursor.getDouble(field); else if (isVarcharType(type) || isCharType(type) || VARBINARY.equals(type)) { return cursor.getSlice(field);
assertInstanceOf(value, String.class); else if (VARBINARY.equals(column.getType())) { assertInstanceOf(value, SqlVarbinary.class);
assertInstanceOf(value, String.class); else if (VARBINARY.equals(column.getType())) { assertInstanceOf(value, SqlVarbinary.class);