Ejemplo n.º 1
0
 static {
   Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
   tmpMap.put(
       _Fields.OBJECT_TYPE,
       new FieldMetaData(
           "objectType",
           TFieldRequirementType.DEFAULT,
           new EnumMetaData(TType.ENUM, HiveObjectType.class)));
   tmpMap.put(
       _Fields.DB_NAME,
       new FieldMetaData(
           "dbName", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING)));
   tmpMap.put(
       _Fields.OBJECT_NAME,
       new FieldMetaData(
           "objectName", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING)));
   tmpMap.put(
       _Fields.PART_VALUES,
       new FieldMetaData(
           "partValues",
           TFieldRequirementType.DEFAULT,
           new ListMetaData(TType.LIST, new FieldValueMetaData(TType.STRING))));
   tmpMap.put(
       _Fields.COLUMN_NAME,
       new FieldMetaData(
           "columnName", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING)));
   metaDataMap = Collections.unmodifiableMap(tmpMap);
   FieldMetaData.addStructMetaDataMap(HiveObjectRef.class, metaDataMap);
 }
Ejemplo n.º 2
0
 static {
   Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
   tmpMap.put(
       _Fields.ERROR_MESSAGE,
       new FieldMetaData(
           "error_message", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING)));
   metaDataMap = Collections.unmodifiableMap(tmpMap);
   FieldMetaData.addStructMetaDataMap(FailedStatus.class, metaDataMap);
 }
 static {
   Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
   tmpMap.put(
       _Fields.MESSAGE,
       new FieldMetaData(
           "message", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING)));
   metaDataMap = Collections.unmodifiableMap(tmpMap);
   FieldMetaData.addStructMetaDataMap(IndexAlreadyExistsException.class, metaDataMap);
 }
 static {
   Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
   tmpMap.put(
       _Fields.WHY,
       new FieldMetaData(
           "why", TFieldRequirementType.REQUIRED, new FieldValueMetaData(TType.STRING)));
   metaDataMap = Collections.unmodifiableMap(tmpMap);
   FieldMetaData.addStructMetaDataMap(AuthenticationException.class, metaDataMap);
 }
 static {
   Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
   tmpMap.put(
       _Fields.VALUES,
       new FieldMetaData(
           "values",
           TFieldRequirementType.OPTIONAL,
           new ListMetaData(TType.LIST, new FieldValueMetaData(TType.STRING, "ThriftObjectId"))));
   metaDataMap = Collections.unmodifiableMap(tmpMap);
   FieldMetaData.addStructMetaDataMap(ObjectIdListWrapper.class, metaDataMap);
 }
Ejemplo n.º 6
0
 static {
   Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
   tmpMap.put(
       _Fields.PROPERTY,
       new FieldMetaData(
           "property",
           TFieldRequirementType.DEFAULT,
           new StructMetaData(TType.STRUCT, LocationPropertyValue.class)));
   metaDataMap = Collections.unmodifiableMap(tmpMap);
   FieldMetaData.addStructMetaDataMap(LocationProperty.class, metaDataMap);
 }
Ejemplo n.º 7
0
 static {
   Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
   tmpMap.put(
       _Fields.KEY,
       new FieldMetaData(
           "key", TFieldRequirementType.REQUIRED, new FieldValueMetaData(TType.STRING)));
   tmpMap.put(
       _Fields.COUNT,
       new FieldMetaData(
           "count", TFieldRequirementType.REQUIRED, new FieldValueMetaData(TType.I32)));
   metaDataMap = Collections.unmodifiableMap(tmpMap);
   FieldMetaData.addStructMetaDataMap(KeyCount.class, metaDataMap);
 }
Ejemplo n.º 8
0
 static {
   Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
   tmpMap.put(
       _Fields.NAME,
       new FieldMetaData(
           "name", TFieldRequirementType.REQUIRED, new FieldValueMetaData(TType.STRING)));
   tmpMap.put(
       _Fields.COLUMNS,
       new FieldMetaData(
           "columns",
           TFieldRequirementType.REQUIRED,
           new ListMetaData(TType.LIST, new StructMetaData(TType.STRUCT, Column.class))));
   metaDataMap = Collections.unmodifiableMap(tmpMap);
   FieldMetaData.addStructMetaDataMap(SuperColumn.class, metaDataMap);
 }
 static {
   Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
   tmpMap.put(
       _Fields.TIMESTAMP,
       new FieldMetaData(
           "timestamp", TFieldRequirementType.OPTIONAL, new FieldValueMetaData(TType.I64)));
   tmpMap.put(
       _Fields.WHAT,
       new FieldMetaData(
           "what", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.I32)));
   tmpMap.put(
       _Fields.WHY,
       new FieldMetaData(
           "why", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING)));
   metaDataMap = Collections.unmodifiableMap(tmpMap);
   FieldMetaData.addStructMetaDataMap(HibariException.class, metaDataMap);
 }
Ejemplo n.º 10
0
 static {
   Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
   tmpMap.put(
       _Fields.MYINT,
       new FieldMetaData(
           "myint", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.I32)));
   tmpMap.put(
       _Fields.MY_STRING,
       new FieldMetaData(
           "myString", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING)));
   tmpMap.put(
       _Fields.UNDERSCORE_INT,
       new FieldMetaData(
           "underscore_int", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.I32)));
   metaDataMap = Collections.unmodifiableMap(tmpMap);
   FieldMetaData.addStructMetaDataMap(IntString.class, metaDataMap);
 }
Ejemplo n.º 11
0
 static {
   Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
   tmpMap.put(
       _Fields.RESPONSE_CODE,
       new FieldMetaData(
           "responseCode", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.I32)));
   tmpMap.put(
       _Fields.TRANSACTION_ID,
       new FieldMetaData(
           "transactionID", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.I64)));
   tmpMap.put(
       _Fields.DESCRIPTION,
       new FieldMetaData(
           "description", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING)));
   metaDataMap = Collections.unmodifiableMap(tmpMap);
   FieldMetaData.addStructMetaDataMap(T_QueryOrderResponse.class, metaDataMap);
 }
Ejemplo n.º 12
0
 static {
   Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
   tmpMap.put(
       _Fields.START_TOKEN,
       new FieldMetaData(
           "start_token", TFieldRequirementType.REQUIRED, new FieldValueMetaData(TType.STRING)));
   tmpMap.put(
       _Fields.END_TOKEN,
       new FieldMetaData(
           "end_token", TFieldRequirementType.REQUIRED, new FieldValueMetaData(TType.STRING)));
   tmpMap.put(
       _Fields.ENDPOINTS,
       new FieldMetaData(
           "endpoints",
           TFieldRequirementType.REQUIRED,
           new ListMetaData(TType.LIST, new FieldValueMetaData(TType.STRING))));
   metaDataMap = Collections.unmodifiableMap(tmpMap);
   FieldMetaData.addStructMetaDataMap(TokenRange.class, metaDataMap);
 }
Ejemplo n.º 13
0
 static {
   Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
   tmpMap.put(
       _Fields.MESSAGE,
       new FieldMetaData(
           "message", TFieldRequirementType.DEFAULT, new FieldValueMetaData(TType.STRING)));
   tmpMap.put(
       _Fields.LOG_CONTEXT,
       new FieldMetaData(
           "log_context",
           TFieldRequirementType.DEFAULT,
           new FieldValueMetaData(TType.STRING, "LogContextId")));
   tmpMap.put(
       _Fields.HANDLE,
       new FieldMetaData(
           "handle",
           TFieldRequirementType.DEFAULT,
           new StructMetaData(TType.STRUCT, QueryHandle.class)));
   metaDataMap = Collections.unmodifiableMap(tmpMap);
   FieldMetaData.addStructMetaDataMap(BeeswaxException.class, metaDataMap);
 }
 static {
   Map<_Fields, FieldMetaData> tmpMap = new EnumMap<_Fields, FieldMetaData>(_Fields.class);
   tmpMap.put(
       _Fields.INTERPRETATIONS,
       new FieldMetaData(
           "interpretations",
           TFieldRequirementType.DEFAULT,
           new ListMetaData(
               TType.LIST, new StructMetaData(TType.STRUCT, GeocodeInterpretation.class))));
   tmpMap.put(
       _Fields.DEBUG_LINES,
       new FieldMetaData(
           "debugLines",
           TFieldRequirementType.OPTIONAL,
           new ListMetaData(TType.LIST, new FieldValueMetaData(TType.STRING))));
   tmpMap.put(
       _Fields.REQUEST_WKT_GEOMETRY,
       new FieldMetaData(
           "requestWktGeometry",
           TFieldRequirementType.OPTIONAL,
           new FieldValueMetaData(TType.STRING)));
   metaDataMap = Collections.unmodifiableMap(tmpMap);
   FieldMetaData.addStructMetaDataMap(GeocodeResponse.class, metaDataMap);
 }