/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include using namespace Aws::Utils; namespace Aws { namespace Glue { namespace Model { namespace LogicalOperatorMapper { static const int EQUALS_HASH = HashingUtils::HashString("EQUALS"); LogicalOperator GetLogicalOperatorForName(const Aws::String& name) { int hashCode = HashingUtils::HashString(name.c_str()); if (hashCode == EQUALS_HASH) { return LogicalOperator::EQUALS; } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { overflowContainer->StoreOverflow(hashCode, name); return static_cast(hashCode); } return LogicalOperator::NOT_SET; } Aws::String GetNameForLogicalOperator(LogicalOperator enumValue) { switch(enumValue) { case LogicalOperator::EQUALS: return "EQUALS"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { return overflowContainer->RetrieveOverflow(static_cast(enumValue)); } return {}; } } } // namespace LogicalOperatorMapper } // namespace Model } // namespace Glue } // namespace Aws