private void set(int i, byte b) { data.set(i, b); }
@Override public void set(int rowIndex, String stringValue) throws NoKeysAvailableException { String str = StringColumnType.missingValueIndicator(); if (stringValue != null) { str = stringValue; } byte valueId = getKeyForValue(str); if (valueId == DEFAULT_RETURN_VALUE) { // this is a new value not in dictionary valueId = getValueId(); put(valueId, str); } values.set(rowIndex, valueId); }
private void set(int i, byte b) { data.set(i, b); }
public void set(int i, boolean b) { data.set(i, b ? (byte) 1 : (byte) 0); }
@Override public void set(byte k) { if (last == -1) throw new IllegalStateException(); ByteArrayList.this.set(last, k); } @Override
@Override public void set(int rowIndex, String stringValue) throws NoKeysAvailableException { String str = StringColumnType.missingValueIndicator(); if (stringValue != null) { str = stringValue; } byte valueId = getKeyForValue(str); if (valueId == DEFAULT_RETURN_VALUE) { // this is a new value not in dictionary valueId = getValueId(); put(valueId, str); } values.set(rowIndex, valueId); }
@Override public void setTag(String k, @Nullable NBTBase base) { int id = Integer.parseInt(k); if (id == -1) { if (base != null) { list.add(((NBTPrimitive) base).getByte()); } } else if (base != null) { list.set(id, ((NBTPrimitive) base).getByte()); } else { list.rem(id); } if (parent != null) { parent.setTag(key, new NBTTagByteArray(list.toByteArray())); } }
public BooleanColumn(String name, Selection hits, int columnSize) { super(name); if (columnSize == 0) { return; } ByteArrayList data = new ByteArrayList(columnSize); for (int i = 0; i < columnSize; i++) { data.add((byte) 0); } IntIterator intIterator = hits.iterator(); while (intIterator.hasNext()) { byte b = (byte) 1; int i = intIterator.next(); data.set(i, b); } this.data = data; }