sb.append(inbound.getSupportComplexTypes()); sb.append("\nsupport_timeout: "); sb.append(inbound.getSupportTimeout());
setSupportComplexTypes(other.getSupportComplexTypes());
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.UserToBitHandshake message) throws java.io.IOException { if(message.hasChannel()) output.writeEnum(1, message.getChannel().getNumber(), false); if(message.hasSupportListening()) output.writeBool(2, message.getSupportListening(), false); if(message.hasRpcVersion()) output.writeInt32(3, message.getRpcVersion(), false); if(message.hasCredentials()) output.writeObject(4, message.getCredentials(), org.apache.drill.exec.proto.SchemaUserBitShared.UserCredentials.WRITE, false); if(message.hasProperties()) output.writeObject(5, message.getProperties(), org.apache.drill.exec.proto.SchemaUserProtos.UserProperties.WRITE, false); if(message.hasSupportComplexTypes()) output.writeBool(6, message.getSupportComplexTypes(), false); if(message.hasSupportTimeout()) output.writeBool(7, message.getSupportTimeout(), false); if(message.hasClientInfos()) output.writeObject(8, message.getClientInfos(), org.apache.drill.exec.proto.SchemaUserProtos.RpcEndpointInfos.WRITE, false); if(message.hasSaslSupport()) output.writeEnum(9, message.getSaslSupport().getNumber(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.UserToBitHandshake message)
/** * Sets the user on the session, and finalizes the session. * * @param userName user name to set on the session * */ void finalizeSession(String userName) { // create a session session = UserSession.Builder.newBuilder() .withCredentials(UserCredentials.newBuilder() .setUserName(userName) .build()) .withOptionManager(userWorker.getSystemOptions()) .withUserProperties(inbound.getProperties()) .setSupportComplexTypes(inbound.getSupportComplexTypes()) .build(); // if inbound impersonation is enabled and a target is mentioned final String targetName = session.getTargetUserName(); if (config.getImpersonationManager() != null && targetName != null) { config.getImpersonationManager().replaceUserOnSession(targetName, session); } }
setSupportComplexTypes(other.getSupportComplexTypes());
public void writeTo(com.dyuproject.protostuff.Output output, org.apache.drill.exec.proto.UserProtos.UserToBitHandshake message) throws java.io.IOException { if(message.hasChannel()) output.writeEnum(1, message.getChannel().getNumber(), false); if(message.hasSupportListening()) output.writeBool(2, message.getSupportListening(), false); if(message.hasRpcVersion()) output.writeInt32(3, message.getRpcVersion(), false); if(message.hasCredentials()) output.writeObject(4, message.getCredentials(), org.apache.drill.exec.proto.SchemaUserBitShared.UserCredentials.WRITE, false); if(message.hasProperties()) output.writeObject(5, message.getProperties(), org.apache.drill.exec.proto.SchemaUserProtos.UserProperties.WRITE, false); if(message.hasSupportComplexTypes()) output.writeBool(6, message.getSupportComplexTypes(), false); if(message.hasSupportTimeout()) output.writeBool(7, message.getSupportTimeout(), false); if(message.hasClientInfos()) output.writeObject(8, message.getClientInfos(), org.apache.drill.exec.proto.SchemaUserProtos.RpcEndpointInfos.WRITE, false); if(message.hasSaslSupport()) output.writeEnum(9, message.getSaslSupport().getNumber(), false); } public boolean isInitialized(org.apache.drill.exec.proto.UserProtos.UserToBitHandshake message)