setProperties method

Future<Map<String, dynamic>> setProperties(
  1. {bool waitForSync,
  2. int journalSize,
  3. int indexBuckets,
  4. int replicationFactor,
  5. int minReplicationFactor}
)

Implementation

Future<Map<String, dynamic>> setProperties({
  bool waitForSync,
  int journalSize,
  int indexBuckets,
  int replicationFactor,
  int minReplicationFactor,
}) {
  final body = {
    if (waitForSync != null) 'waitForSync': waitForSync,
    if (journalSize != null) 'journalSize': journalSize,
    if (indexBuckets != null) 'indexBuckets': indexBuckets,
    if (replicationFactor != null) 'replicationFactor': replicationFactor,
    if (minReplicationFactor != null)
      'minReplicationFactor': minReplicationFactor,
  };
  return _put('properties', body);
}