test_class.file: legacy/src/test/java/macrobase/ingest/DatumEncoderTest.java
test_class.identifier: DatumEncoderTest
test_case.body: @Test
      public void copyTest() {
          DatumEncoder e1 = new DatumEncoder();
          e1.recordAttributeName(0, "foo");
          int encoded1 = e1.getIntegerEncoding(0, "attrValue1");
          int encoded2 = e1.getIntegerEncoding(0, "attrValue2");
          e1.recordAttributeName(1, "bar");
          int encoded3 = e1.getIntegerEncoding(1, "attrValue3");
  
          DatumEncoder e2 = new DatumEncoder();
          e2.copy(e1);
  
          assertEquals("foo", e2.getAttribute(encoded1).getColumn());
          assertEquals("bar", e2.getAttribute(encoded3).getColumn());
          assertEquals("attrValue3", e2.getAttribute(encoded3).getValue());
  
          int encoded4 = e2.getIntegerEncoding(1, "attrValue4");
          assertEquals("attrValue4", e2.getAttribute(encoded4).getValue());
      }
test_case.class_method_signature: DatumEncoderTest.copyTest()
test_case.full_signature: @Test public void copyTest()
test_case.identifier: copyTest
test_case.invocations: recordAttributeName getIntegerEncoding getIntegerEncoding recordAttributeName getIntegerEncoding copy assertEquals getColumn getAttribute assertEquals getColumn getAttribute assertEquals getValue getAttribute getIntegerEncoding assertEquals getValue getAttribute
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void copyTest()
focal_class.declarator: log = LoggerFactory.getLogger(DatumEncoder.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(DatumEncoder.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: attributeDimensionNameMap = new HashMap<>()
focal_class.modifier: private
focal_class.original_string: private HashMap<Integer, String> attributeDimensionNameMap = new HashMap<>();
focal_class.type: HashMap<Integer, String>
focal_class.var_name: attributeDimensionNameMap
focal_class.declarator: integerEncoding = new HashMap<>()
focal_class.modifier: private
focal_class.original_string: private HashMap<Integer, Map<String, Integer>> integerEncoding = new HashMap<>();
focal_class.type: HashMap<Integer, Map<String, Integer>>
focal_class.var_name: integerEncoding
focal_class.declarator: integerToColumn = new HashMap<>()
focal_class.modifier: private
focal_class.original_string: private HashMap<Integer, Integer> integerToColumn = new HashMap<>();
focal_class.type: HashMap<Integer, Integer>
focal_class.var_name: integerToColumn
focal_class.declarator: nextKey = 0
focal_class.modifier: private
focal_class.original_string: private Integer nextKey = 0;
focal_class.type: Integer
focal_class.var_name: nextKey
focal_class.file: legacy/src/main/java/macrobase/ingest/DatumEncoder.java
focal_class.identifier: DatumEncoder
focal_class.class_method_signature: DatumEncoder.DatumEncoder()
focal_class.full_signature: public  DatumEncoder()
focal_class.identifier: DatumEncoder
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  DatumEncoder()
focal_class.class_method_signature: DatumEncoder.copy(DatumEncoder other)
focal_class.full_signature: public void copy(DatumEncoder other)
focal_class.identifier: copy
focal_class.modifiers: public
focal_class.parameters: (DatumEncoder other)
focal_class.return: void
focal_class.signature: void copy(DatumEncoder other)
focal_class.class_method_signature: DatumEncoder.recordAttributeName(int dimension, String attribute)
focal_class.full_signature: public void recordAttributeName(int dimension, String attribute)
focal_class.identifier: recordAttributeName
focal_class.modifiers: public
focal_class.parameters: (int dimension, String attribute)
focal_class.return: void
focal_class.signature: void recordAttributeName(int dimension, String attribute)
focal_class.class_method_signature: DatumEncoder.getAttributeName(Integer dimension)
focal_class.full_signature: public String getAttributeName(Integer dimension)
focal_class.identifier: getAttributeName
focal_class.modifiers: public
focal_class.parameters: (Integer dimension)
focal_class.return: String
focal_class.signature: String getAttributeName(Integer dimension)
focal_class.class_method_signature: DatumEncoder.getAttribute(int encodedAttr)
focal_class.full_signature: public ColumnValue getAttribute(int encodedAttr)
focal_class.identifier: getAttribute
focal_class.modifiers: public
focal_class.parameters: (int encodedAttr)
focal_class.return: ColumnValue
focal_class.signature: ColumnValue getAttribute(int encodedAttr)
focal_class.class_method_signature: DatumEncoder.getColsFromAttrSet(Set<Integer> attrs)
focal_class.full_signature: public List<ColumnValue> getColsFromAttrSet(Set<Integer> attrs)
focal_class.identifier: getColsFromAttrSet
focal_class.modifiers: public
focal_class.parameters: (Set<Integer> attrs)
focal_class.return: List<ColumnValue>
focal_class.signature: List<ColumnValue> getColsFromAttrSet(Set<Integer> attrs)
focal_class.class_method_signature: DatumEncoder.getColsFromAttr(Integer item)
focal_class.full_signature: public List<ColumnValue> getColsFromAttr(Integer item)
focal_class.identifier: getColsFromAttr
focal_class.modifiers: public
focal_class.parameters: (Integer item)
focal_class.return: List<ColumnValue>
focal_class.signature: List<ColumnValue> getColsFromAttr(Integer item)
focal_class.class_method_signature: DatumEncoder.getIntegerEncoding(int dimension, String attr)
focal_class.full_signature: public int getIntegerEncoding(int dimension, String attr)
focal_class.identifier: getIntegerEncoding
focal_class.modifiers: public
focal_class.parameters: (int dimension, String attr)
focal_class.return: int
focal_class.signature: int getIntegerEncoding(int dimension, String attr)
focal_class.class_method_signature: DatumEncoder.getNextKey()
focal_class.full_signature: public int getNextKey()
focal_class.identifier: getNextKey
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getNextKey()
focal_method.body: public void copy(DatumEncoder other) {
          attributeDimensionNameMap.clear();
          for (Map.Entry<Integer, String> entry : other.attributeDimensionNameMap.entrySet()) {
              attributeDimensionNameMap.put(entry.getKey(), entry.getValue());
          }
  
          integerEncoding.clear();
          for (Map.Entry<Integer, Map<String, Integer>> entry :
                  other.integerEncoding.entrySet()) {
              integerEncoding.put(entry.getKey(), entry.getValue());
          }
  
          integerToColumn.clear();
          for (Map.Entry<Integer, Integer> entry :
                  other.integerToColumn.entrySet()) {
              integerToColumn.put(entry.getKey(), entry.getValue());
          }
  
          nextKey = other.nextKey;
      }
focal_method.class_method_signature: DatumEncoder.copy(DatumEncoder other)
focal_method.full_signature: public void copy(DatumEncoder other)
focal_method.identifier: copy
focal_method.invocations: clear entrySet put getKey getValue clear entrySet put getKey getValue clear entrySet put getKey getValue
focal_method.modifiers: public
focal_method.parameters: (DatumEncoder other)
focal_method.return: void
focal_method.signature: void copy(DatumEncoder other)